dsto.dfc.util
Class IllegalFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by dsto.dfc.util.IllegalFormatException
All Implemented Interfaces:
Serializable

public class IllegalFormatException
extends RuntimeException

Indicates an illegal format has been detected.

This is a "legacy" exception used primarily by the DFC Swing forms library and the dfc.text library. It is similar to the newer InvalidFormatException but carries a "source" reference to help in UI binding and is unchecked to avoid having to wrap the exception in cases where the input value is known to be valid. New code should probably use InvalidFormatException.

Version:
$Revision$
See Also:
InvalidFormatException, Serialized Form

Constructor Summary
IllegalFormatException(Object source, IllegalFormatException ex)
          Useful for rethrowing an IllegalFormatException with a new source.
IllegalFormatException(Object source, Object value, Class form)
          Generate a message indicating that a value could not be converted to a given class.
IllegalFormatException(Object source, Object value, Class form, Throwable ex)
           
IllegalFormatException(Object source, String message, Object value, Class form)
           
 
Method Summary
 Class getForm()
           
 Object getSource()
           
 Object getValue()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalFormatException

public IllegalFormatException(Object source,
                              Object value,
                              Class form)
Generate a message indicating that a value could not be converted to a given class.


IllegalFormatException

public IllegalFormatException(Object source,
                              Object value,
                              Class form,
                              Throwable ex)

IllegalFormatException

public IllegalFormatException(Object source,
                              String message,
                              Object value,
                              Class form)

IllegalFormatException

public IllegalFormatException(Object source,
                              IllegalFormatException ex)
Useful for rethrowing an IllegalFormatException with a new source.

Method Detail

getSource

public Object getSource()

getValue

public Object getValue()

getForm

public Class getForm()


Copyright © 2008 Commonwealth of Australia