Package java.lang

Class ArithmeticException

All Implemented Interfaces:
Serializable

public class ArithmeticException
extends RuntimeException
Thrown when the an invalid arithmetic operation is attempted.
See Also:
Serialized Form
  • Constructor Details

    • ArithmeticException

      public ArithmeticException()
      Constructs a new ArithmeticException that includes the current stack trace.
    • ArithmeticException

      public ArithmeticException​(String detailMessage)
      Constructs a new ArithmeticException with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this exception.