Class InvalidFormatException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.binding.convert.converters.InvalidFormatException
All Implemented Interfaces:
Serializable

public class InvalidFormatException extends RuntimeException
Thrown when a formatted value is of the wrong form.
Author:
Keith Donald
See Also:
  • Constructor Details

    • InvalidFormatException

      public InvalidFormatException(String invalidValue, String expectedFormat)
      Create a new invalid format exception.
      Parameters:
      invalidValue - the invalid value
      expectedFormat - the expected format
    • InvalidFormatException

      public InvalidFormatException(String invalidValue, String expectedFormat, Throwable cause)
      Create a new invalid format exception.
      Parameters:
      invalidValue - the invalid value
      expectedFormat - the expected format
      cause - the underlying cause of this exception
    • InvalidFormatException

      public InvalidFormatException(String invalidValue, String expectedFormat, String message, Throwable cause)
      Create a new invalid format exception.
      Parameters:
      invalidValue - the invalid value
      expectedFormat - the expected format
      message - a descriptive message
      cause - the underlying cause of this exception
  • Method Details

    • getInvalidValue

      public String getInvalidValue()
      Returns the invalid value.
    • getExpectedFormat

      public String getExpectedFormat()
      Returns the expected format.