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
public class ScramServerException extends AuthenticationMechanismException
A SCRAM server-side exception with an error code.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ScramServerErrorCode
error
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ScramServerException(String msg, Throwable cause, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial message and cause.ScramServerException(String msg, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial message.ScramServerException(Throwable cause, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial cause.ScramServerException(ScramServerErrorCode error)
Constructs a newScramServerException
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScramServerErrorCode
getError()
String
getMessage()
-
Methods inherited from class org.wildfly.security.mechanism.AuthenticationMechanismException
fromException, toHttpAuthenticationException, toSaslException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
error
private final ScramServerErrorCode error
-
-
Constructor Detail
-
ScramServerException
public ScramServerException(ScramServerErrorCode error)
Constructs a newScramServerException
instance. The message is left blank (null
), and no cause is specified.- Parameters:
error
- the server error code
-
ScramServerException
public ScramServerException(String msg, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial message. No cause is specified.- Parameters:
msg
- the messageerror
- the server error code
-
ScramServerException
public ScramServerException(Throwable cause, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial cause. If a non-null
cause 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
public ScramServerException(String msg, Throwable cause, ScramServerErrorCode error)
Constructs a newScramServerException
instance with an initial message and cause.- Parameters:
msg
- the messagecause
- the causeerror
- the server error code
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getError
public ScramServerErrorCode getError()
-
-