java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException javax.security.sasl.SaslException
public class SaslException
This class represents an error that has occurred when using SASL.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Throwable |
getCause
() Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
Throwable |
initCause
(
Throwable
cause) Initializes the cause of this throwable to the specified value. |
String |
toString
() Returns the string representation of this exception. |
Methods inherited from class java.lang. Throwable |
---|
fillInStackTrace , getLocalizedMessage , getMessage , getStackTrace , printStackTrace , printStackTrace , printStackTrace , setStackTrace |
Methods inherited from class java.lang. Object |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
---|
public SaslException()
public SaslException(String detail)
public SaslException(String detail, Throwable ex)
Method Detail |
---|
public Throwable getCause()
This implementation returns the cause that was supplied via one of the constructors requiring a Throwable , or that was set after creation with the Throwable.initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable . Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.
public Throwable initCause(Throwable cause)
This method can be called at most once. It is generally called from within the constructor, or immediately after creating the throwable. If this throwable was created with Throwable.Throwable(Throwable) or Throwable.Throwable(String,Throwable) , this method cannot be called even once.
public String toString()