ArithmeticException
public
class
ArithmeticException
extends RuntimeException
| java.lang.Object | ||||
| ↳ | java.lang.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | java.lang.ArithmeticException | |||
Thrown when an exceptional arithmetic condition has occurred. For
example, an integer "divide by zero" throws an
instance of this class.
ArithmeticException objects may be constructed by the
virtual machine as if suppression were disabled and/or the
stack trace was not writable.
Summary
Public constructors | |
|---|---|
ArithmeticException()
Constructs an |
|
ArithmeticException(String s)
Constructs an |
|
Inherited methods | |
|---|---|
java.lang.Throwable
| |
java.lang.Object
| |
Public constructors
ArithmeticException
ArithmeticException ()
Constructs an ArithmeticException with no detail
message.
ArithmeticException
ArithmeticException (String s)
Constructs an ArithmeticException with the specified
detail message.
| Parameters | |
|---|---|
s |
String:
the detail message.
|
Annotations
Interfaces
Classes
- Boolean
- Byte
- Character
- Character.Subset
- Character.UnicodeBlock
- Class
- ClassLoader
- Compiler
- Double
- Enum
- Float
- InheritableThreadLocal
- Integer
- Long
- Math
- Number
- Object
- Package
- Process
- ProcessBuilder
- Runtime
- RuntimePermission
- SecurityManager
- Short
- StackTraceElement
- StrictMath
- String
- StringBuffer
- StringBuilder
- System
- Thread
- ThreadGroup
- ThreadLocal
- Throwable
- Void
Enums
Exceptions
- ArithmeticException
- ArrayIndexOutOfBoundsException
- ArrayStoreException
- ClassCastException
- ClassNotFoundException
- CloneNotSupportedException
- EnumConstantNotPresentException
- Exception
- IllegalAccessException
- IllegalArgumentException
- IllegalMonitorStateException
- IllegalStateException
- IllegalThreadStateException
- IndexOutOfBoundsException
- InstantiationException
- InterruptedException
- NegativeArraySizeException
- NoSuchFieldException
- NoSuchMethodException
- NullPointerException
- NumberFormatException
- ReflectiveOperationException
- RuntimeException
- SecurityException
- StringIndexOutOfBoundsException
- TypeNotPresentException
- UnsupportedOperationException
Errors
- AbstractMethodError
- AssertionError
- ClassCircularityError
- ClassFormatError
- Error
- ExceptionInInitializerError
- IllegalAccessError
- IncompatibleClassChangeError
- InstantiationError
- InternalError
- LinkageError
- NoClassDefFoundError
- NoSuchFieldError
- NoSuchMethodError
- OutOfMemoryError
- StackOverflowError
- ThreadDeath
- UnknownError
- UnsatisfiedLinkError
- UnsupportedClassVersionError
- VerifyError
- VirtualMachineError

