Packages  This Package  Prev  Next  Index  

§1.24 Class ArithmeticException

public  class  java.lang.ArithmeticException
    extends  java.lang.RuntimeException  (I-§1.42)
{
        // Constructors
    public ArithmeticException();	§1.24.1
    public ArithmeticException(String  s);	§1.24.2
}
Thrown when an exceptional arithmetic condition has occurred. For example, an integer "divide by zero" throws an instance of this class.


Constructors

ArithmeticException

public ArithmeticException()
Constructs an ArithmeticException with no detail message.

ArithmeticException

public ArithmeticException(String s)
Constructs an ArithmeticException with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com