net.sf.josceleton.commons.exception
Class InvalidArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.josceleton.commons.exception.JosceletonException
                  extended by net.sf.josceleton.commons.exception.InvalidArgumentException
All Implemented Interfaces:
Serializable

public class InvalidArgumentException
extends JosceletonException

Most commonly used to check for constructor arguments, but also for formal parameters of a regular method.

Since:
0.1
See Also:
Serialized Form

Constructor Summary
protected InvalidArgumentException(String argumentName, Object argumentValue, String condition)
           
 
Method Summary
 String getArgumentName()
           
 Object getArgumentValue()
           
static InvalidArgumentException newInstance(String argumentName, Object argumentValue, String condition)
           
static InvalidArgumentException newNotNull(String argumentName)
           
 
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

InvalidArgumentException

protected InvalidArgumentException(String argumentName,
                                   Object argumentValue,
                                   String condition)
Method Detail

newNotNull

public static InvalidArgumentException newNotNull(String argumentName)
Since:
0.1

newInstance

public static InvalidArgumentException newInstance(String argumentName,
                                                   Object argumentValue,
                                                   String condition)
Since:
0.1

getArgumentName

public final String getArgumentName()
Since:
0.1

getArgumentValue

public final Object getArgumentValue()
Since:
0.1


Copyright © 2011 Josceleton. All Rights Reserved.