SMIMEException

public class SMIMEException extends Exception

The exception will be thrown when generating SMIME mime body or mime message

Author:achong

Constructors

SMIMEException

public SMIMEException(String msg)

Construtor with message.

Parameters:
  • msg – the message of the exception

SMIMEException

public SMIMEException(String msg, Exception e)

Instantiate the exception with a nested exception

Parameters:
  • msg – the message of the exception
  • e – the exception to be wrapped

Methods

getMessage

public String getMessage()

It overrides the getMessage() method so it also reports the nested exception , if it exists.

Returns:the exception message.

getNestedException

public Exception getNestedException()
Returns:the nested exception