Class StateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
se.idsec.signservice.integration.core.error.SignServiceIntegrationException
se.idsec.signservice.integration.state.StateException
- All Implemented Interfaces:
Serializable
public class StateException
extends se.idsec.signservice.integration.core.error.SignServiceIntegrationException
Exception class for state errors.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStateException(se.idsec.signservice.integration.core.error.ErrorCode.Code code, String message) Constructor.StateException(se.idsec.signservice.integration.core.error.ErrorCode.Code code, String message, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected se.idsec.signservice.integration.core.error.ErrorCode.CategoryintMethods inherited from class se.idsec.signservice.integration.core.error.SignServiceIntegrationException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StateException
public StateException(@Nonnull se.idsec.signservice.integration.core.error.ErrorCode.Code code, String message) Constructor.- Parameters:
code- the error code (within the given category)message- the error message
-
StateException
public StateException(@Nonnull se.idsec.signservice.integration.core.error.ErrorCode.Code code, String message, Throwable cause) Constructor.- Parameters:
code- the error code (within the given category)message- the error messagecause- the cause of the error
-
-
Method Details
-
getCategory
protected se.idsec.signservice.integration.core.error.ErrorCode.Category getCategory()- Overrides:
getCategoryin classse.idsec.signservice.integration.core.error.SignServiceIntegrationException
-
getHttpStatus
public int getHttpStatus()- Specified by:
getHttpStatusin classse.idsec.signservice.integration.core.error.SignServiceIntegrationException
-