JavaScript is disabled on your browser.
javax.mail

Class MessagingException

    • Constructor Summary

      Constructors
      Constructor and Description
      MessagingException ()
      Constructs a messaging exception with no detail message.
      MessagingException (java.lang.String message)
      Constructs a messaging exception with the specified detail message.
      MessagingException (java.lang.String message, java.lang.Exception exception)
      Constructs a messaging exception with the specified exception and detail message.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.Throwable getCause ()
      java.lang.Exception getNextException ()
      Returns the next exception chained to this one.
      boolean setNextException (java.lang.Exception exception)
      Adds an exception to the end of the chain.
      java.lang.String toString ()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessagingException

        public MessagingException()
        Constructs a messaging exception with no detail message.
      • MessagingException

        public MessagingException(java.lang.String message)
        Constructs a messaging exception with the specified detail message.
        Parameters:
        message - the detail message
      • MessagingException

        public MessagingException(java.lang.String message,
         java.lang.Exception exception)
        Constructs a messaging exception with the specified exception and detail message.
        Parameters:
        message - the detail message
        exception - the embedded exception
    • Method Detail

      • getNextException

        public java.lang.Exception getNextException()
        Returns the next exception chained to this one. If the next exception is a messaging exception, the chain may extend further.
      • getCause

        public java.lang.Throwable getCause()
        Overrides:
        getCause in class java.lang.Throwable
      • setNextException

        public boolean setNextException(java.lang.Exception exception)
        Adds an exception to the end of the chain. If the end is not a messaging exception, this exception cannot be added to the end.
        Parameters:
        exception - the new end of the exception chain
        Returns:
        true if this exception was added, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable

AltStyle によって変換されたページ (->オリジナル) /