Most visited

Recently visited

Added in API level 1

ArithmeticException

public class ArithmeticException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.ArithmeticException


发生特殊算术条件时抛出。 例如,一个整数“除以零”将抛出该类的一个实例。 ArithmeticException对象可能由虚拟机构造,就像suppression were disabled and/or the stack trace was not writable一样

Summary

Public constructors

ArithmeticException()

构造一个没有详细消息的 ArithmeticException

ArithmeticException(String s)

用指定的详细信息构造一个 ArithmeticException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ArithmeticException

Added in API level 1
ArithmeticException ()

构造一个没有详细信息的 ArithmeticException

ArithmeticException

Added in API level 1
ArithmeticException (String s)

用指定的详细信息构造一个 ArithmeticException

Parameters
s String: the detail message.

Hooray!