Assuming that your server is generating some kind of 500 error HTTP response (which is the default behavior in most servlet containers if your servlet throws an exception), then you should see the "UploadErrorHandler.onUploadError()" method invoked.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I throw any exception from server to client., It goes only to uploadSuccessHandler instead of uploadErrorHandler
Question : Which response needs to send from server to client for calling uploadErrorHandler
Please guide me about it. Thanks in advance
Assuming that your server is generating some kind of 500 error HTTP response (which is the default behavior in most servlet containers if your servlet throws an exception), then you should see the "UploadErrorHandler.onUploadError()" method invoked.