Class NoAccessException

All Implemented Interfaces:
Serializable

public class NoAccessException extends SignServiceIntegrationException
Exception class to report that the caller does not have access on a given resource.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Field Details

    • ERROR_CODE

      public static final ErrorCode ERROR_CODE
      The error code for this type of errors.
  • Constructor Details

    • NoAccessException

      public NoAccessException(String message)
      Constructor assigning the error message.
      Parameters:
      message - the error message
    • NoAccessException

      public NoAccessException(String message, Throwable cause)
      Constructor assigning the error message and the cause of the error.
      Parameters:
      message - the error message
      cause - the cause of the error
  • Method Details

    • getHttpStatus

      public int getHttpStatus()
      If the SignService Integration Service is used from a REST API, the HTTP status may be useful when reporting errors.
      Specified by:
      getHttpStatus in class SignServiceIntegrationException
      Returns:
      the HTTP status code that should be used when sending an error response for this exception