public class AuthenticationMechanismException extends IOException
| Constructor and Description |
|---|
AuthenticationMechanismException()
Constructs a new
AuthenticationMechanismException instance. |
AuthenticationMechanismException(String msg)
Constructs a new
AuthenticationMechanismException instance with an initial message. |
AuthenticationMechanismException(String msg,
Throwable cause)
Constructs a new
AuthenticationMechanismException instance with an initial message and cause. |
AuthenticationMechanismException(Throwable cause)
Constructs a new
AuthenticationMechanismException instance with an initial cause. |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationMechanismException |
fromException(Exception source)
Convert the given exception to an
AuthenticationMechanismException. |
HttpAuthenticationException |
toHttpAuthenticationException()
Convert this exception to an HTTP exception with the same message and stack trace.
|
SaslException |
toSaslException()
Convert this exception to a SASL exception with the same message and stack trace.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthenticationMechanismException()
AuthenticationMechanismException instance. The message is left blank (null),
and no cause is specified.public AuthenticationMechanismException(String msg)
AuthenticationMechanismException instance with an initial message. No cause is
specified.msg - the messagepublic AuthenticationMechanismException(Throwable cause)
AuthenticationMechanismException instance with an initial cause. If a non-null
cause is specified, its message is used to initialize the message of this AuthenticationMechanismException; otherwise the message is left blank (null).cause - the causepublic SaslException toSaslException()
public HttpAuthenticationException toHttpAuthenticationException()
public static AuthenticationMechanismException fromException(Exception source)
AuthenticationMechanismException. If the given exception is
already a AuthenticationMechanismException, it is returned as-is.source - the source exception (must not be null)null)Copyright © 2019 JBoss by Red Hat. All rights reserved.