org.springframework.binding.format
Class InvalidFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.binding.format.InvalidFormatException
All Implemented Interfaces:
java.io.Serializable

public class InvalidFormatException
extends org.springframework.core.NestedRuntimeException

Thrown when a formatted value is of the wrong form.

Author:
Keith Donald
See Also:
Serialized Form

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

Constructor Detail

InvalidFormatException

public InvalidFormatException(java.lang.String invalidValue,
                              java.lang.String expectedFormat)
Create a new invalid format exception.

Parameters:
invalidValue - the invalid value
expectedFormat - the expected format

InvalidFormatException

public InvalidFormatException(java.lang.String invalidValue,
                              java.lang.String expectedFormat,
                              java.lang.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(java.lang.String invalidValue,
                              java.lang.String expectedFormat,
                              java.lang.String message,
                              java.lang.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 java.lang.String getInvalidValue()
Returns the invalid value.


getExpectedFormat

public java.lang.String getExpectedFormat()
Returns the expected format.



Copyright � 2004-2007. All Rights Reserved.