Class JsonArrayIndexOutOfBoundsException

All Implemented Interfaces:
Serializable

public class JsonArrayIndexOutOfBoundsException extends ArrayIndexOutOfBoundsException
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.
See Also:
  • Constructor Details

    • JsonArrayIndexOutOfBoundsException

      public JsonArrayIndexOutOfBoundsException()
      Constructs a new json array index out-of-bounds exception with no details.
    • JsonArrayIndexOutOfBoundsException

      public JsonArrayIndexOutOfBoundsException(@Nullable @Nullable String message)
      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 bounds
      size - The size of the array