Class JsonKeyInvalidException

    • Field Detail

      • ERROR_CODE

        public static final java.lang.String ERROR_CODE
        Error code of this exception.
        See Also:
        Constant Field Values
    • Method Detail

      • 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​(java.lang.CharSequence jsonKey,
                                                                                              @Nullable
                                                                                              java.lang.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​(java.lang.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