/** * Returns a new mutable builder with a fluent API for a {@code dittoRuntimeException}. The builder is already * initialized with the properties of the given exception. * * @param dittoRuntimeException the exception to be copied. * @return the new builder. * @throws NullPointerException if {@code dittoRuntimeException} is {@code null}. */ public static DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> newBuilder( final DittoRuntimeException dittoRuntimeException) { checkNotNull(dittoRuntimeException, "dittoRuntimeException to be copied"); return dittoRuntimeException.getBuilder() .dittoHeaders(dittoRuntimeException.dittoHeaders) .message(dittoRuntimeException.getMessage()) .description(dittoRuntimeException.description) .cause(dittoRuntimeException.getCause()) .href(dittoRuntimeException.href); }
/** * Returns a new mutable builder with a fluent API for a {@code dittoRuntimeException}. The builder is already * initialized with the properties of the given exception. * * @param dittoRuntimeException the exception to be copied. * @return the new builder. * @throws NullPointerException if {@code dittoRuntimeException} is {@code null}. */ public static DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> newBuilder( final DittoRuntimeException dittoRuntimeException) { checkNotNull(dittoRuntimeException, "dittoRuntimeException to be copied"); return dittoRuntimeException.getBuilder() .dittoHeaders(dittoRuntimeException.dittoHeaders) .message(dittoRuntimeException.getMessage()) .description(dittoRuntimeException.description) .cause(dittoRuntimeException.getCause()) .href(dittoRuntimeException.href); }