@Override protected ConnectionSignalIdEnforcementFailedException doBuild(final DittoHeaders dittoHeaders, @Nullable final String message, @Nullable final String description, @Nullable final Throwable cause, @Nullable final URI href) { return new ConnectionSignalIdEnforcementFailedException(dittoHeaders, message, description, cause, href); }
/** * Constructs a new {@code ConnectionSignalIdEnforcementFailedException} object with the exception message extracted from * the given JSON object. * * @param jsonObject the JSON to read the {@link JsonFields#MESSAGE} field from. * @param dittoHeaders the headers of the command which resulted in this exception. * @return the new ConnectionSignalIdEnforcementFailedException. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the {@code jsonObject} does not have the {@link * JsonFields#MESSAGE} field. */ public static ConnectionSignalIdEnforcementFailedException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return new Builder() .dittoHeaders(dittoHeaders) .message(readMessage(jsonObject)) .description(readDescription(jsonObject).orElse(DEFAULT_DESCRIPTION)) .href(readHRef(jsonObject).orElse(null)) .build(); }
private ConnectionSignalIdEnforcementFailedException getEnforcementFailedException( final DittoHeaders dittoHeaders) { return ConnectionSignalIdEnforcementFailedException.newBuilder(inputValue) .dittoHeaders(dittoHeaders) .build(); }
/** * Constructs a new {@code ConnectionSignalIdEnforcementFailedException} object with the exception message extracted from * the given JSON object. * * @param jsonObject the JSON to read the {@link JsonFields#MESSAGE} field from. * @param dittoHeaders the headers of the command which resulted in this exception. * @return the new ConnectionSignalIdEnforcementFailedException. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the {@code jsonObject} does not have the {@link * JsonFields#MESSAGE} field. */ public static ConnectionSignalIdEnforcementFailedException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return new Builder() .dittoHeaders(dittoHeaders) .message(readMessage(jsonObject)) .description(readDescription(jsonObject).orElse(DEFAULT_DESCRIPTION)) .href(readHRef(jsonObject).orElse(null)) .build(); }
@Override protected ConnectionSignalIdEnforcementFailedException doBuild(final DittoHeaders dittoHeaders, @Nullable final String message, @Nullable final String description, @Nullable final Throwable cause, @Nullable final URI href) { return new ConnectionSignalIdEnforcementFailedException(dittoHeaders, message, description, cause, href); }