Rest Server Error Messages

To capture and return error messages for the REST API, I’ve created a RestControllerExceptionHandler and it works great to be able to get the correct error message and return it. The problem is that I can’t get the exceptions that are thrown from published custom services. I’ll throw exceptions in these services but the handler only gets a generic exception with no reference to the original exception. Is there any way to get the error from a published rest service?


We’ll fill the exception cause for the RestAPIException objects when the exception occurs on service method invocation. The issue: REST API: fill the cause exception in the RestAPIException object · Issue #1274 · cuba-platform/cuba · GitHub