Package org.wildfly.security.mechanism
Class ScramServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.wildfly.security.mechanism.AuthenticationMechanismException
org.wildfly.security.mechanism.ScramServerException
- All Implemented Interfaces:
Serializable
A SCRAM server-side exception with an error code.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScramServerException(String msg, Throwable cause, ScramServerErrorCode error) Constructs a newScramServerExceptioninstance with an initial message and cause.ScramServerException(String msg, ScramServerErrorCode error) Constructs a newScramServerExceptioninstance with an initial message.ScramServerException(Throwable cause, ScramServerErrorCode error) Constructs a newScramServerExceptioninstance with an initial cause.Constructs a newScramServerExceptioninstance. -
Method Summary
Methods inherited from class org.wildfly.security.mechanism.AuthenticationMechanismException
fromException, toHttpAuthenticationException, toSaslExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScramServerException
Constructs a newScramServerExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
error- the server error code
-
ScramServerException
Constructs a newScramServerExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messageerror- the server error code
-
ScramServerException
Constructs a newScramServerExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisScramServerException; otherwise the message is left blank (null).- Parameters:
cause- the causeerror- the server error code
-
ScramServerException
Constructs a newScramServerExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causeerror- the server error code
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getError
Returns the error code of the exception.- Returns:
- the error code of the exception.
-