Class RestServiceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RestServiceException
    extends java.lang.Exception
    Exceptions thrown by different layers of the RESTful frontend. All exceptions are accompanied by a RestServiceErrorCode.
    See Also:
    Serialized Form
    • Constructor Detail

      • RestServiceException

        public RestServiceException​(java.lang.String message,
                                    java.lang.Throwable e,
                                    RestServiceErrorCode error)
        Parameters:
        message - the exception message.
        e - the exception cause.
        error - the RestServiceErrorCode.
      • RestServiceException

        public RestServiceException​(java.lang.String message,
                                    RestServiceErrorCode error,
                                    boolean includeExceptionMessageInResponse)
        Parameters:
        message - the exception message.
        error - the RestServiceErrorCode.
        includeExceptionMessageInResponse - true to hint that the exception message should be returned to the client as a response header.
    • Method Detail

      • shouldIncludeExceptionMessageInResponse

        public boolean shouldIncludeExceptionMessageInResponse()