Class SADValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
se.swedenconnect.opensaml.sweid.saml2.signservice.SADValidationException
- All Implemented Interfaces:
Serializable
Exception class for SAD validation errors.
- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible validation errors. -
Constructor Summary
ConstructorsConstructorDescriptionSADValidationException(SADValidationException.ErrorCode errorCode, String message) Constructor assigning the error code and error message.SADValidationException(SADValidationException.ErrorCode errorCode, String message, Throwable cause) Constructor assigning the error code, the error message and the cause of the error. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SADValidationException
Constructor assigning the error code and error message.- Parameters:
errorCode- the error codemessage- the error message
-
SADValidationException
public SADValidationException(SADValidationException.ErrorCode errorCode, String message, Throwable cause) Constructor assigning the error code, the error message and the cause of the error.- Parameters:
errorCode- the error codemessage- the error messagecause- the cause of the error
-
-
Method Details
-
getErrorCode
Returns the error code.- Returns:
- error code
-