Class AsposeException

AsposeException class

The base class of the exceptions thrown by Aspose.Email.

public class AsposeException : Exception

Constructors

NameDescription
AsposeException()Initializes a new instance of the AsposeException class.
AsposeException(Exception)Initializes a new instance of the AsposeException class with a reference to the exception that caused it.
AsposeException(string)Initializes a new instance of the AsposeException class with the specified error message.
AsposeException(string, Exception)Initializes a new instance of the AsposeException class with the specified error message and a reference to the exception that caused it.
AsposeException(string, params object[])Initializes a new instance of the AsposeException class with an error message built from a composite format string.
AsposeException(string, string)Initializes a new instance of the AsposeException class with an error message built from a format string with one argument.

Properties

NameDescription
ErrorDetails { get; }Gets additional information about the error, if the operation provides any.
override Message { get; }Gets the message that describes the error.

Methods

NameDescription
override ToString()Returns the type, the message and the stack trace of the exception.

Remarks

Catch this type to handle any error that the library reports with its own exception types, such as FormatNotSupportedException, SmtpException or ImapException.

See Also