No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.
javax.security.sasl

Class SaslException

    • Constructor Detail

      • SaslException

        public SaslException()
        Constructs a new instance of SaslException. The root exception and the detailed message are null.
      • SaslException

        public SaslException(String detail)
        Constructs a new instance of SaslException with a detailed message. The root exception is null.
        Parameters:
        detail - A possibly null string containing details of the exception.
        See Also:
        Throwable.getMessage()
      • SaslException

        public SaslException(String detail,
                     Throwable ex)
        Constructs a new instance of 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.
        Parameters:
        detail - A possibly null string containing details of the exception.
        ex - A possibly null root exception that caused this exception.
        See Also:
        Throwable.getMessage(), getCause()
    • Method Detail

      • getCause

        public Throwable getCause()
        Description copied from class: Throwable
        Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

        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.

        Overrides:
        getCause in class Throwable
        Returns:
        the cause of this throwable or null if the cause is nonexistent or unknown.
      • initCause

        public Throwable initCause(Throwable cause)
        Description copied from class: Throwable
        Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)

        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.

        An example of using this method on a legacy throwable type without other support for setting the cause is:

         try {
             lowLevelOp();
         } catch (LowLevelException le) {
             throw (HighLevelException)
                   new HighLevelException().initCause(le); // Legacy constructor
         }
         
        Overrides:
        initCause in class Throwable
        Parameters:
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        Returns:
        a reference to this Throwable instance.
      • toString

        public String toString()
        Returns the string representation of this exception. The string representation contains this exception's class name, its detailed messsage, and if it has a root exception, the string representation of the root exception. This string representation is meant for debugging and not meant to be interpreted programmatically.
        Overrides:
        toString in class Throwable
        Returns:
        The non-null string representation of this exception.
        See Also:
        Throwable.getMessage()

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/security/sasl/saslexception.html/.html/

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut