Class NoAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
se.idsec.signservice.integration.core.error.SignServiceIntegrationException
se.idsec.signservice.integration.core.error.NoAccessException
- All Implemented Interfaces:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoAccessException(String message) Constructor assigning the error message.NoAccessException(String message, Throwable cause) Constructor assigning the error message and the cause of the error. -
Method Summary
Modifier and TypeMethodDescriptionintIf the SignService Integration Service is used from a REST API, the HTTP status may be useful when reporting errors.Methods inherited from class se.idsec.signservice.integration.core.error.SignServiceIntegrationException
getCategory, getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CODE
The error code for this type of error.
-
-
Constructor Details
-
NoAccessException
Constructor assigning the error message.- Parameters:
message- the error message
-
NoAccessException
Constructor assigning the error message and the cause of the error.- Parameters:
message- the error messagecause- 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:
getHttpStatusin classSignServiceIntegrationException- Returns:
- the HTTP status code that should be used when sending an error response for this exception
-