public class SaslException extends IOException
Constructor and Description |
---|
SaslException()
Constructs a new instance of
SaslException . |
SaslException(String detail)
Constructs a new instance of
SaslException with a detailed message. |
SaslException(String detail,
Throwable ex)
Constructs a new instance of
SaslException with a detailed message
and a root exception. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Answers the cause of this Throwable, or null if there
is no cause.
|
Throwable |
initCause(Throwable cause)
Initialize the cause of the receiver.
|
String |
toString()
Returns the string representation of this exception.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SaslException()
SaslException
.
The root exception and the detailed message are null.public SaslException(String detail)
SaslException
with a detailed message.
The root exception is null.detail
- A possibly null string containing details of the exception.Throwable.getMessage()
public SaslException(String detail, Throwable ex)
SaslException
with a detailed message
and a root exception.
For example, a SaslException might result from a problem with
the callback handler, which might throw a NoSuchCallbackException if
it does not support the requested callback, or throw an IOException
if it had problems obtaining data for the callback. The
SaslException's root exception would be then be the exception thrown
by the callback handler.detail
- A possibly null string containing details of the exception.ex
- A possibly null root exception that caused this exception.Throwable.getMessage()
,
getCause()
public Throwable getCause()
Throwable
public Throwable initCause(Throwable cause)
Throwable
public String toString()
toString
in class Throwable
Throwable.getMessage()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.