AsposeArgumentOutOfRangeException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.email.AsposeException

public class AsposeArgumentOutOfRangeException extends AsposeException

The exception that is thrown when one of the arguments provided to a method is out of range.

``` 1 ```

Constructors

Constructor Description
AsposeArgumentOutOfRangeException() Initializes a new instance of the AsposeArgumentOutOfRangeException class.
AsposeArgumentOutOfRangeException(String message) Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message.
AsposeArgumentOutOfRangeException(String format, Object[] parameters) Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message.
AsposeArgumentOutOfRangeException(String format, int parameter)
AsposeArgumentOutOfRangeException(String message, System.Exception innerException) Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message and a reference to the inner exception that is the cause of this exception.
AsposeArgumentOutOfRangeException(String message, String paramName)
AsposeArgumentOutOfRangeException(System.Exception innerException) Initializes a new instance of the AsposeArgumentOutOfRangeException class with a reference to the inner exception that is the cause of this exception.

Methods

Method Description
getMessage() Gets a message that describes the current exception.
getParamName() Parameter name

AsposeArgumentOutOfRangeException()

public AsposeArgumentOutOfRangeException()

Initializes a new instance of the AsposeArgumentOutOfRangeException class.

AsposeArgumentOutOfRangeException(String message)

public AsposeArgumentOutOfRangeException(String message)

Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message.

Parameters:

Parameter Type Description
message java.lang.String The message that describes the error.

AsposeArgumentOutOfRangeException(String format, Object[] parameters)

public AsposeArgumentOutOfRangeException(String format, Object[] parameters)

Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message.

Parameters:

Parameter Type Description
format java.lang.String Message format
parameters java.lang.Object[] Format parameters

AsposeArgumentOutOfRangeException(String format, int parameter)

public AsposeArgumentOutOfRangeException(String format, int parameter)

Parameters:

Parameter Type Description
format java.lang.String
parameter int

AsposeArgumentOutOfRangeException(String message, System.Exception innerException)

public AsposeArgumentOutOfRangeException(String message, System.Exception innerException)

Initializes a new instance of the AsposeArgumentOutOfRangeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters:

Parameter Type Description
message java.lang.String The error message that explains the reason for the exception.
innerException com.aspose.ms.System.Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

AsposeArgumentOutOfRangeException(String message, String paramName)

public AsposeArgumentOutOfRangeException(String message, String paramName)

Parameters:

Parameter Type Description
message java.lang.String
paramName java.lang.String

AsposeArgumentOutOfRangeException(System.Exception innerException)

public AsposeArgumentOutOfRangeException(System.Exception innerException)

Initializes a new instance of the AsposeArgumentOutOfRangeException class with a reference to the inner exception that is the cause of this exception.

Parameters:

Parameter Type Description
innerException com.aspose.ms.System.Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

getMessage()

public String getMessage()

Gets a message that describes the current exception.

Returns: java.lang.String

getParamName()

public String getParamName()

Parameter name

Returns: java.lang.String