When a ResourceException is thrown, the ex.getMessage() call returns the non-technical end-user-facing message from the Stormpath REST Error resource.
Instead, a nicer message should be constructed showing the HTTP status code, the Stormpath error code, and the developer message. This ensures that stormpath customers can see the important details of an error whenever an exception or stacktrace surfaces.
When a ResourceException is thrown, the ex.getMessage() call returns the non-technical end-user-facing message from the Stormpath REST Error resource.
Instead, a nicer message should be constructed showing the HTTP status code, the Stormpath error code, and the developer message. This ensures that stormpath customers can see the important details of an error whenever an exception or stacktrace surfaces.