|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.ArithmeticException
public class ArithmeticException
Thrown when a math error has occured, such as trying to divide an
integer by zero. For example:
int i = 0; int j = 2 / i;
Constructor Summary | |
---|---|
ArithmeticException()
Create an exception without a message. |
|
ArithmeticException(String s)
Create an exception with a message. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArithmeticException()
public ArithmeticException(String s)
s
- the message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |