Class CoercionFailedException

All Implemented Interfaces:
Serializable

Error thrown when a value fails to be converted to an expected type.
Since:
4.0.0
See Also:
  • Constructor Details

    • CoercionFailedException

      public CoercionFailedException(Object inputValue, String typeDescription)
      Indicate that a value transformation has failed.
      Parameters:
      inputValue - original value
      typeDescription - description of the expected type
      Since:
      4.0.0
    • CoercionFailedException

      public CoercionFailedException(Type target, Object inputValue, String typeDescription)
      Indicate that a value transformation has failed.
      Parameters:
      target - expected type
      inputValue - original value
      typeDescription - description of the expected type
      Since:
      4.0.0
    • CoercionFailedException

      public CoercionFailedException(AnnotatedType target, Object inputValue, String typeDescription)
      Indicate that a value transformation has failed.
      Parameters:
      target - expected type
      inputValue - original value
      typeDescription - description of the expected type
      Since:
      4.2.0