classGenericServerException extends Exception with DartRestException
This exception should be used for failures that do not correspond to any status codes more specific than 500
but still ought to pass some details to the user. All other exceptions should simply be passed to
DartScalatraServlet without being translated to a DartRestException, which will result in a 500 response
and an "Internal Server Error" message.
If you throw this after catching another exception, you can pass that exception as 'cause' and DartScalatraServlet
will log it for you.
This exception should be used for failures that do not correspond to any status codes more specific than 500 but still ought to pass some details to the user. All other exceptions should simply be passed to DartScalatraServlet without being translated to a DartRestException, which will result in a 500 response and an "Internal Server Error" message.
If you throw this after catching another exception, you can pass that exception as 'cause' and DartScalatraServlet will log it for you.