Package org.eclipse.ditto.json
Class JsonPointerInvalidException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.ditto.json.JsonRuntimeException
org.eclipse.ditto.json.JsonPointerInvalidException
- All Implemented Interfaces:
Serializable
,JsonException
Thrown if a
JsonPointer
was in an invalid format.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A mutable builder for aJsonPointerInvalidException
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for fluently creating instances ofJsonPointerInvalidException
s..newBuilderForConsecutiveSlashes
(CharSequence jsonPointer) Returns a new builder already containing a generic message that consecutive slashes are not supported for JSON pointers.newBuilderForOuterSlashes
(CharSequence jsonPointer) Returns a new builder already containing a generic message that leading or trailing slashes are not supported for JSON pointers.Methods inherited from class org.eclipse.ditto.json.JsonRuntimeException
getDescription, getErrorCode, getHref, newBuilder
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CODE
Error code of this exception.- See Also:
-
-
Method Details
-
newBuilder
Returns a builder for fluently creating instances ofJsonPointerInvalidException
s..- 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.
-