Module net.luis.utils
Class JsonArrayIndexOutOfBoundsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
net.luis.utils.io.data.json.exception.JsonArrayIndexOutOfBoundsException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an index of a json array is out of bounds.
This exception is thrown when an index is either negative or greater than or equal to the size of the array.
The exception message will contain the index and may the size of the array.
This exception is thrown when an index is either negative or greater than or equal to the size of the array.
The exception message will contain the index and may the size of the array.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new json array index out-of-bounds exception with no details.JsonArrayIndexOutOfBoundsException
(int index) Constructs a new json array index out-of-bounds exception with the specified index.JsonArrayIndexOutOfBoundsException
(int index, int size) Constructs a new json array index out-of-bounds exception with the specified index and size.JsonArrayIndexOutOfBoundsException
(@Nullable String message) Constructs a new json array index out-of-bounds exception with the specified message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonArrayIndexOutOfBoundsException
public JsonArrayIndexOutOfBoundsException()Constructs a new json array index out-of-bounds exception with no details. -
JsonArrayIndexOutOfBoundsException
Constructs a new json array index out-of-bounds exception with the specified message.- Parameters:
message
- The message of the exception
-
JsonArrayIndexOutOfBoundsException
public JsonArrayIndexOutOfBoundsException(int index) Constructs a new json array index out-of-bounds exception with the specified index.- Parameters:
index
- The index that is out of bounds
-
JsonArrayIndexOutOfBoundsException
public JsonArrayIndexOutOfBoundsException(int index, int size) Constructs a new json array index out-of-bounds exception with the specified index and size.- Parameters:
index
- The index that is out of boundssize
- The size of the array
-