Suppose there\'s a Double
variable in an action, and if the value sent in the request body is something like
{\"dblField\":\"\"}
You could place exception
interceptor before your own interceptor instead of the json
interceptor by extending json
interceptor and override intercept
method where you can catch errors. Then you can either add action errors or rethrow a custom exception which you can map in the action config or globally.
<exception-mapping exception="org.exceptionmapping.CustomException"
result="errorresult"/>
This way you can map all json only interceptor errors with your custom exception.