|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.sf.qualitycheck.exception.IllegalStateOfArgumentException
public class IllegalStateOfArgumentException
Thrown to indicate that a method was passed arguments which caused an invalid state.
Field Summary | |
---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that the given arguments caused an invalid state. |
protected static String |
MESSAGE_DESCRIPTION
Message to indicate that an invalid state was caused due to the passed arguments, which also provides an explanation why the state is invalid. |
Constructor Summary | |
---|---|
IllegalStateOfArgumentException()
Constructs an IllegalStateOfArgumentException with the default message
DEFAULT_MESSAGE . |
|
IllegalStateOfArgumentException(String description)
Constructs an IllegalStateOfArgumentException with the message MESSAGE_DESCRIPTION
including the given values of the arguments. |
|
IllegalStateOfArgumentException(String description,
Object... descriptionTemplateArgs)
Constructs an IllegalStateOfArgumentException with the message MESSAGE_DESCRIPTION
including the given values of the arguments. |
|
IllegalStateOfArgumentException(String description,
Throwable cause)
Constructs a new exception with the message MESSAGE_DESCRIPTION including the given
values of the arguments. |
|
IllegalStateOfArgumentException(Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE . |
|
IllegalStateOfArgumentException(Throwable cause,
String description,
Object... descriptionTemplateArgs)
Constructs a new exception with the message MESSAGE_DESCRIPTION including the given
values of the arguments. |
Method Summary |
---|
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 |
Field Detail |
---|
protected static final String DEFAULT_MESSAGE
protected static final String MESSAGE_DESCRIPTION
Constructor Detail |
---|
public IllegalStateOfArgumentException()
IllegalStateOfArgumentException
with the default message
DEFAULT_MESSAGE
.
public IllegalStateOfArgumentException(@Nonnull String description)
IllegalStateOfArgumentException
with the message MESSAGE_DESCRIPTION
including the given values of the arguments.
description
- explains why the state is invalidpublic IllegalStateOfArgumentException(@Nonnull String description, Object... descriptionTemplateArgs)
IllegalStateOfArgumentException
with the message MESSAGE_DESCRIPTION
including the given values of the arguments.
description
- format string template that explains why the state is invaliddescriptionTemplateArgs
- format string template arguments to explain why the state is invalidpublic IllegalStateOfArgumentException(@Nonnull String description, @Nullable Throwable cause)
MESSAGE_DESCRIPTION
including the given
values of the arguments.
description
- explains why the state is invalidcause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)public IllegalStateOfArgumentException(@Nullable Throwable cause, @Nonnull String description, Object... descriptionTemplateArgs)
MESSAGE_DESCRIPTION
including the given
values of the arguments.
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)description
- format string template that explains why the state is invaliddescriptionTemplateArgs
- format string template arguments to explain why the state is invalidpublic IllegalStateOfArgumentException(@Nullable Throwable cause)
DEFAULT_MESSAGE
.
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |