public class ScramServerException extends AuthenticationMechanismException
Constructor and Description |
---|
ScramServerException(ScramServerErrorCode error)
Constructs a new
ScramServerException instance. |
ScramServerException(String msg,
ScramServerErrorCode error)
Constructs a new
ScramServerException instance with an initial message. |
ScramServerException(String msg,
Throwable cause,
ScramServerErrorCode error)
Constructs a new
ScramServerException instance with an initial message and cause. |
ScramServerException(Throwable cause,
ScramServerErrorCode error)
Constructs a new
ScramServerException instance with an initial cause. |
Modifier and Type | Method and Description |
---|---|
ScramServerErrorCode |
getError() |
String |
getMessage() |
fromException, toHttpAuthenticationException, toSaslException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ScramServerException(ScramServerErrorCode error)
ScramServerException
instance. The message is left blank (null
), and no cause
is specified.error
- the server error codepublic ScramServerException(String msg, ScramServerErrorCode error)
ScramServerException
instance with an initial message. No cause is specified.msg
- the messageerror
- the server error codepublic ScramServerException(Throwable cause, ScramServerErrorCode error)
ScramServerException
instance with an initial cause. If a non-null
cause is
specified, its message is used to initialize the message of this ScramServerException
; otherwise the
message is left blank (null
).cause
- the causeerror
- the server error codepublic ScramServerException(String msg, Throwable cause, ScramServerErrorCode error)
ScramServerException
instance with an initial message and cause.msg
- the messagecause
- the causeerror
- the server error codepublic String getMessage()
getMessage
in class Throwable
public ScramServerErrorCode getError()
Copyright © 2021 JBoss by Red Hat. All rights reserved.