Class JsonPointerInvalidException

All Implemented Interfaces:
Serializable, JsonException

public final class JsonPointerInvalidException extends JsonRuntimeException
Thrown if a JsonPointer was in an invalid format.
See Also:
  • Field Details

  • Method Details

    • newBuilder

      public static JsonPointerInvalidException.Builder newBuilder()
      Returns a builder for fluently creating instances of JsonPointerInvalidExceptions..
      Returns:
      a new builder for JsonPointerInvalidException objects.
    • newBuilderForConsecutiveSlashes

      public static JsonExceptionBuilder<JsonPointerInvalidException> newBuilderForConsecutiveSlashes(CharSequence jsonPointer)
      Returns a new builder already containing a generic message that consecutive slashes are not supported for JSON pointers.
      Parameters:
      jsonPointer - The JSON pointer containing the consecutive slashes.
      Returns:
      a builder for JsonPointerInvalidException objects.
    • newBuilderForOuterSlashes

      public static JsonExceptionBuilder<JsonPointerInvalidException> newBuilderForOuterSlashes(CharSequence jsonPointer)
      Returns a new builder already containing a generic message that leading or trailing slashes are not supported for JSON pointers.
      Parameters:
      jsonPointer - The JSON pointer containing the leading and/or trailing slashes.
      Returns:
      a builder for JsonPointerInvalidException objects.