Package org.eclipse.ditto.json
Class JsonPointerInvalidException.Builder
java.lang.Object
org.eclipse.ditto.json.AbstractJsonExceptionBuilder<JsonPointerInvalidException>
org.eclipse.ditto.json.JsonPointerInvalidException.Builder
- All Implemented Interfaces:
JsonExceptionBuilder<JsonPointerInvalidException>
- Enclosing class:
- JsonPointerInvalidException
@NotThreadSafe
public static final class JsonPointerInvalidException.Builder
extends AbstractJsonExceptionBuilder<JsonPointerInvalidException>
A mutable builder for a
JsonPointerInvalidException
.-
Method Summary
Modifier and TypeMethodDescriptionprotected JsonPointerInvalidException
This method must be implemented by subclasses.jsonPointer
(CharSequence jsonPointerString) Sets a message which points to the name of the invalid JSON pointer.Methods inherited from class org.eclipse.ditto.json.AbstractJsonExceptionBuilder
build, cause, cause, description, description, href, href, message, message
-
Method Details
-
jsonPointer
Sets a message which points to the name of the invalid JSON pointer. Thus if this method is called,AbstractJsonExceptionBuilder.message(String)
should not be called.- Parameters:
jsonPointerString
- the string representation of the invalid JSON pointer.- Returns:
- this builder to allow method chaining.
-
doBuild
protected JsonPointerInvalidException doBuild(String errorCode, @Nullable String message, @Nullable String description, @Nullable Throwable cause, @Nullable URI href) Description copied from class:AbstractJsonExceptionBuilder
This method must be implemented by subclasses. It is responsible for actually building the exception object. Therefore it receives the data which was provided during the building process.- Specified by:
doBuild
in classAbstractJsonExceptionBuilder<JsonPointerInvalidException>
- Parameters:
errorCode
- the error code.message
- the detail message ornull
.description
- the description ornull
.cause
- the cause ornull
.href
- the link to further information ornull
.- Returns:
- a new exception of the target type.
-