Package org.eclipse.ditto.json
Class JsonMissingFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.ditto.json.JsonRuntimeException
org.eclipse.ditto.json.JsonMissingFieldException
- All Implemented Interfaces:
Serializable
,JsonException
Thrown if an expected JSON field is not in the JSON.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A mutable builder for aJsonMissingFieldException
. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newJsonMissingFieldException
object for the specified JSON key or pointer.JsonMissingFieldException
(JsonFieldDefinition<?> fieldDefinition) Constructs a newJsonMissingFieldException
object for the JsonPointer of the specified JsonFieldDefinition. -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for fluently creating instances ofJsonMissingFieldException
s..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:
-
-
Constructor Details
-
JsonMissingFieldException
Constructs a newJsonMissingFieldException
object for the specified JSON key or pointer.- Parameters:
key
- JsonKey or JsonPointer which refers to the missing field.
-
JsonMissingFieldException
Constructs a newJsonMissingFieldException
object for the JsonPointer of the specified JsonFieldDefinition.- Parameters:
fieldDefinition
- provides the JsonPointer which refers to the missing field.- Throws:
NullPointerException
- ifjsonFieldDefinition
isnull
.
-
-
Method Details
-
newBuilder
Returns a builder for fluently creating instances ofJsonMissingFieldException
s..- Returns:
- a new builder for JsonMissingFieldException objects.
-