Class DivideByZeroException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DivideByZeroException
    extends ExpressionException
    This exception is thrown when an expression would cause a divide by zero.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DivideByZeroException()
      Construct a divide-by-zero exception with no message.
      DivideByZeroException​(java.lang.String msg)
      Construct a divide-by-zero exception with the specified message.
      DivideByZeroException​(java.lang.String msg, java.lang.Throwable cause)
      Construct a divide-by-zero exception with the specified message and cause.
      DivideByZeroException​(java.lang.Throwable cause)
      Construct a divide-by-zero exception with the specified cause and no message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DivideByZeroException

        public DivideByZeroException()
        Construct a divide-by-zero exception with no message.
      • DivideByZeroException

        public DivideByZeroException​(java.lang.String msg)
        Construct a divide-by-zero exception with the specified message.
      • DivideByZeroException

        public DivideByZeroException​(java.lang.Throwable cause)
        Construct a divide-by-zero exception with the specified cause and no message.
      • DivideByZeroException

        public DivideByZeroException​(java.lang.String msg,
                                     java.lang.Throwable cause)
        Construct a divide-by-zero exception with the specified message and cause.