- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- jakarta.mail.MessagingException
- 
- jakarta.mail.NoSuchProviderException
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class NoSuchProviderException extends MessagingException This exception is thrown when Session attempts to instantiate a Provider that doesn't exist.- Author:
- Max Spivak
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NoSuchProviderException()Constructs a NoSuchProviderException with no detail message.NoSuchProviderException(java.lang.String message)Constructs a NoSuchProviderException with the specified detail message.NoSuchProviderException(java.lang.String message, java.lang.Exception e)Constructs a NoSuchProviderException with the specified detail message and embedded exception.
 - 
Method Summary- 
Methods inherited from class jakarta.mail.MessagingExceptiongetCause, getNextException, setNextException, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
NoSuchProviderExceptionpublic NoSuchProviderException() Constructs a NoSuchProviderException with no detail message.
 - 
NoSuchProviderExceptionpublic NoSuchProviderException(java.lang.String message) Constructs a NoSuchProviderException with the specified detail message.- Parameters:
- message- The detailed error message
 
 - 
NoSuchProviderExceptionpublic NoSuchProviderException(java.lang.String message, java.lang.Exception e)Constructs a NoSuchProviderException with the specified detail message and embedded exception. The exception is chained to this exception.- Parameters:
- message- The detailed error message
- e- The embedded exception
 
 
- 
 
-