org.springframework.binding.convert.converters
Class InvalidFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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:
Serialized Form

Constructor Summary
InvalidFormatException(String invalidValue, String expectedFormat)
          Create a new invalid format exception.
InvalidFormatException(String invalidValue, String expectedFormat, String message, Throwable cause)
          Create a new invalid format exception.
InvalidFormatException(String invalidValue, String expectedFormat, Throwable cause)
          Create a new invalid format exception.
 
Method Summary
 String getExpectedFormat()
          Returns the expected format.
 String getInvalidValue()
          Returns the invalid value.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getInvalidValue

public String getInvalidValue()
Returns the invalid value.


getExpectedFormat

public String getExpectedFormat()
Returns the expected format.