Class JsonKeyInvalidException

All Implemented Interfaces:
Serializable, JsonException

public final class JsonKeyInvalidException extends JsonRuntimeException
Thrown if a JsonKey was in an invalid format.
Since:
1.2.0
See Also:
  • Field Details

  • Method Details

    • newBuilder

      public static JsonKeyInvalidException.Builder newBuilder()
      Returns a builder for fluently creating instances of JsonKeyInvalidExceptions.
      Returns:
      a new builder for JsonKeyInvalidException objects.
    • newBuilderWithDescription

      public static JsonExceptionBuilder<JsonKeyInvalidException> newBuilderWithDescription(CharSequence jsonKey, @Nullable String description)
      Returns a new builder containing the given message for the given JSON key.
      Parameters:
      jsonKey - The JSON key the message is about.
      description - The description to be in the exception.
      Returns:
      a builder for JsonKeyInvalidException objects.
    • newBuilderWithoutDescription

      public static JsonExceptionBuilder<JsonKeyInvalidException> newBuilderWithoutDescription(CharSequence jsonKey)
      Returns a new builder already containing a default message that the JSON key is no valid.
      Parameters:
      jsonKey - The JSON key the message is about.
      Returns:
      a builder for JsonKeyInvalidException objects.
      Since:
      1.2.0