ArgumentException
Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.ms.System.SystemException, com.aspose.ms.System.NotImplementedException
public class ArgumentException extends System.NotImplementedException
The exception that is thrown when one of the arguments provided to a method is not valid.
Constructors
Constructor | Description |
---|---|
ArgumentException(String message, System.Exception innerException) | Initializes a new instance of the ArgumentException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
ArgumentException(String message) | Initializes a new instance of the ArgumentException class with a specified error message. |
ArgumentException(System.Exception innerException) | Initializes a new instance of the ArgumentException class with a specified error message. |
ArgumentException(String message, System.Exception innerException)
public ArgumentException(String message, System.Exception innerException)
Initializes a new instance of the ArgumentException 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. |
ArgumentException(String message)
public ArgumentException(String message)
Initializes a new instance of the ArgumentException class with a specified error message.
Parameters:
Parameter | Type | Description |
---|---|---|
message | java.lang.String | The error message that explains the reason for the exception. |
ArgumentException(System.Exception innerException)
public ArgumentException(System.Exception innerException)
Initializes a new instance of the ArgumentException class with a specified error message.
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. |