OverflowException
Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, java.lang.ArithmeticException
public final class OverflowException extends ArithmeticException
The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow.
Constructors
Constructor | Description |
---|---|
OverflowException() | Initializes a new instance of the OverflowException class. |
OverflowException(String message) | Initializes a new instance of the OverflowException class with a specified error message. |
OverflowException(String message, Throwable cause) | Initializes a new instance of this class. |
OverflowException()
public OverflowException()
Initializes a new instance of the OverflowException class.
OverflowException(String message)
public OverflowException(String message)
Initializes a new instance of the OverflowException class with a specified error message.
Parameters:
Parameter | Type | Description |
---|---|---|
message | java.lang.String | The message that describes the error. |
OverflowException(String message, Throwable cause)
public OverflowException(String message, Throwable cause)
Initializes a new instance of this class.
Parameters:
Parameter | Type | Description |
---|---|---|
message | java.lang.String | |
cause | java.lang.Throwable |