com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class SmtpException

    • Constructor Detail

      • SmtpException

        public SmtpException(int statusCode)

        Initializes a new instance of the SmtpException class

        Parameters:
        statusCode - Smtp status code
      • SmtpException

        public SmtpException(int statusCode,
                     String message)

        Initializes a new instance of the SmtpException class

        Parameters:
        statusCode - Smtp status code
        message - Error message
      • SmtpException

        public SmtpException()

        Initializes a new instance of the SmtpException class

      • SmtpException

        public SmtpException(String message)

        Initializes a new instance of the SmtpException class

        Parameters:
        message - Error message
      • SmtpException

        public SmtpException(String message,
                     SendMessagesResult result)

        Initializes a new instance of the SmtpException class

        Parameters:
        message - Error message
        result - Operation result
      • SmtpException

        public SmtpException(String message,
                     Throwable innerException)

        Initializes a new instance of the SmtpException class

        Parameters:
        message - Error message
        innerException - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
      • SmtpException

        public SmtpException(String message,
                     Throwable innerException,
                     MailMessage mailMessage)

        Initializes a new instance of the SmtpException class

        Parameters:
        message - Error message
        innerException - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
        mailMessage -
      • SmtpException

        public SmtpException(String message,
                     MailMessage mailMessage)

        Initializes a new instance of the SmtpException class

        Parameters:
        message - Error message
    • Method Detail

      • getStatusCode

        public final int getStatusCode()

        Smtp status code

      • setStatusCode

        public final void setStatusCode(int value)

        Smtp status code

      • getOperationDetails

        public final SendMessagesResult getOperationDetails()

        Gets extra information aboout error