|
||||||||||
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.IllegalPositionIndexException
public class IllegalPositionIndexException
Thrown to indicate that a passed position index was out of the bounds of a string, list, array ... .
Field Summary | |
---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that the a given position index is not valid. |
protected static String |
MESSAGE_WITH_VALUES
Default message to indicate that the a given position index is not valid within the given bounds. |
Constructor Summary | |
---|---|
IllegalPositionIndexException()
Constructs an IllegalPositionIndexException with the default message
DEFAULT_MESSAGE . |
|
IllegalPositionIndexException(int index,
int size)
Constructs an IllegalPositionIndexException with the message
MESSAGE_WITH_VALUES including the given values of the arguments. |
|
IllegalPositionIndexException(int index,
int size,
Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_VALUES including
the given values of the arguments. |
|
IllegalPositionIndexException(Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE . |
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_WITH_VALUES
Constructor Detail |
---|
public IllegalPositionIndexException()
IllegalPositionIndexException
with the default message
DEFAULT_MESSAGE
.
public IllegalPositionIndexException(int index, int size)
IllegalPositionIndexException
with the message
MESSAGE_WITH_VALUES
including the given values of the arguments.
index
- an index in an array, list or stringsize
- the size of an array, list or stringpublic IllegalPositionIndexException(int index, int size, @Nullable Throwable cause)
MESSAGE_WITH_VALUES
including
the given values of the arguments.
index
- an index in an array, list or stringsize
- the size of an array, list or stringcause
- 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 IllegalPositionIndexException(@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 |