OverflowException
Leave feedback
On this page
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.
| 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. |
public OverflowException()
Initializes a new instance of the OverflowException class.
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. |
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 |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.