Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class ArithmeticException

Constructors

public  class  java.lang.ArithmeticException
    extends  java.lang.RuntimeException  
{
        // Constructors
    public ArithmeticException();	
    public ArithmeticException(String  s);	
}

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.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.