How to catch “org.springframework.web.multipart.MultipartException” in Grails 3
问题 I'm having an awfully hard time catching the error: org.springframework.web.multipart.MultipartException I have the following code: final class UploadTextCommand { MultipartFile contents static constraints = { } } Additionally to handle the post of the file I have this action: def upload = { UploadTextCommand -> ...code... } I've got these settings in the "application.yml" file to force the error: controllers: upload: maxFileSize: 100 maxRequestSize: 100 So I can reliably recreate the