net.sf.josceleton.commons.exception
Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.josceleton.commons.exception.JosceletonException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InvalidArgumentException
protected InvalidArgumentException(String argumentName,
Object argumentValue,
String condition)
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.