Joda System API

org.joda.util
Class IllegalArgumentJodaException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--org.joda.util.IllegalArgumentJodaException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConversionException, NoBinderSwingJodaException, NoTypeConvertorException, NullArgumentJodaException, SwingJodaException

public class IllegalArgumentJodaException
extends java.lang.IllegalArgumentException

Exception thrown when an input argument is unacceptable to a method. Details of the object that caused the exception and the argument are encapsulated in the exception.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
IllegalArgumentJodaException(java.lang.Object errSource, java.lang.Object value)
          Constructor
IllegalArgumentJodaException(java.lang.Object errSource, java.lang.Object value, java.lang.String baseMessage)
          Constructor
 
Method Summary
 java.lang.Object getRejectedValue()
          Get the value which was rejected
 java.lang.Object getSource()
          Get the object that generated the exception
 
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

IllegalArgumentJodaException

public IllegalArgumentJodaException(java.lang.Object errSource,
                                    java.lang.Object value,
                                    java.lang.String baseMessage)
Constructor

Parameters:
errSource - the object that generated the exception
value - the value that could not be converted

IllegalArgumentJodaException

public IllegalArgumentJodaException(java.lang.Object errSource,
                                    java.lang.Object value)
Constructor

Parameters:
errSource - the object that generated the exception
value - the value that could not be converted
Method Detail

getSource

public java.lang.Object getSource()
Get the object that generated the exception

Returns:
the error source

getRejectedValue

public java.lang.Object getRejectedValue()
Get the value which was rejected

Returns:
the value

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.