# Class JexlArithmetic.CoercionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArithmeticException
org.apache.commons.jexl3.JexlArithmetic.CoercionException

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `JexlArithmetic`

public static class JexlArithmetic.CoercionException extends ArithmeticException
Marker class for coercion operand exceptions.

Since:
  2.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CoercionException(String msg)`
  Constructs a new instance.
  `CoercionException(String msg, Throwable cause)`
  Constructs a new instance.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CoercionException

    public CoercionException(String msg)
    Constructs a new instance.
    Parameters:
      `msg` - the detail message.

  - ### CoercionException

    public CoercionException(String msg, Throwable cause)
    Constructs a new instance.
    Parameters:
      `msg` - the detail message.
      `cause` - The cause of this Throwable.
    Since:
      3.5.0