test_class.declarator: KNOWN_ERROR_CODE = "matrix.glitch"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_ERROR_CODE = "matrix.glitch";
test_class.type: String
test_class.var_name: KNOWN_ERROR_CODE
test_class.declarator: KNOWN_STATUS_CODE = HttpStatusCode.SERVICE_UNAVAILABLE
test_class.modifier: private static final
test_class.original_string: private static final HttpStatusCode KNOWN_STATUS_CODE = HttpStatusCode.SERVICE_UNAVAILABLE;
test_class.type: HttpStatusCode
test_class.var_name: KNOWN_STATUS_CODE
test_class.declarator: KNOWN_MESSAGE = "A glitch happened in the Matrix!"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_MESSAGE = "A glitch happened in the Matrix!";
test_class.type: String
test_class.var_name: KNOWN_MESSAGE
test_class.declarator: KNOWN_DESCRIPTION = "This occurs from time to time. Please restart the Matrix service."
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_DESCRIPTION = "This occurs from time to time. Please restart the Matrix service.";
test_class.type: String
test_class.var_name: KNOWN_DESCRIPTION
test_class.declarator: KNOWN_DITTO_HEADERS = DittoHeaders.empty()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders KNOWN_DITTO_HEADERS = DittoHeaders.empty();
test_class.type: DittoHeaders
test_class.var_name: KNOWN_DITTO_HEADERS
test_class.declarator: KNOWN_CAUSE = new IllegalStateException("You divided by zero!")
test_class.modifier: private static final
test_class.original_string: private static final Throwable KNOWN_CAUSE = new IllegalStateException("You divided by zero!");
test_class.type: Throwable
test_class.var_name: KNOWN_CAUSE
test_class.declarator: KNOWN_HREF = null
test_class.modifier: private static final
test_class.original_string: private static final URI KNOWN_HREF = null;
test_class.type: URI
test_class.var_name: KNOWN_HREF
test_class.declarator: KNOWN_DITTO_RUNTIME_EXCEPTION =
              DittoRuntimeException.newBuilder(KNOWN_ERROR_CODE, KNOWN_STATUS_CODE) //
                      .message(KNOWN_MESSAGE) //
                      .description(KNOWN_DESCRIPTION) //
                      .dittoHeaders(KNOWN_DITTO_HEADERS) //
                      .cause(KNOWN_CAUSE) //
                      .href(KNOWN_HREF) //
                      .build()
test_class.modifier: private static final
test_class.original_string: private static final DittoRuntimeException KNOWN_DITTO_RUNTIME_EXCEPTION =
              DittoRuntimeException.newBuilder(KNOWN_ERROR_CODE, KNOWN_STATUS_CODE) //
                      .message(KNOWN_MESSAGE) //
                      .description(KNOWN_DESCRIPTION) //
                      .dittoHeaders(KNOWN_DITTO_HEADERS) //
                      .cause(KNOWN_CAUSE) //
                      .href(KNOWN_HREF) //
                      .build();
test_class.type: DittoRuntimeException
test_class.var_name: KNOWN_DITTO_RUNTIME_EXCEPTION
test_class.file: model/base/src/test/java/org/eclipse/ditto/model/base/exceptions/DittoRuntimeExceptionTest.java
test_class.identifier: DittoRuntimeExceptionTest
test_case.body: @Test
      public void copyAndAlterExistingDittoRuntimeException() {
          final DittoHeaders dittoHeadersMock = mock(DittoHeaders.class);
  
          final DittoRuntimeException withOtherDittoHeaders =
                  DittoRuntimeException.newBuilder(KNOWN_DITTO_RUNTIME_EXCEPTION) //
                          .dittoHeaders(dittoHeadersMock) //
                  .build();
  
          DittoBaseAssertions.assertThat(withOtherDittoHeaders) //
                  .hasErrorCode(KNOWN_ERROR_CODE) //
                  .hasStatusCode(KNOWN_STATUS_CODE) //
                  .hasDittoHeaders(dittoHeadersMock) //
                  .hasDescription(KNOWN_DESCRIPTION) //
                  .hasMessage(KNOWN_MESSAGE) //
                  .hasCause(KNOWN_CAUSE) //
                  .hasNoHref();
      }
test_case.class_method_signature: DittoRuntimeExceptionTest.copyAndAlterExistingDittoRuntimeException()
test_case.full_signature: @Test public void copyAndAlterExistingDittoRuntimeException()
test_case.identifier: copyAndAlterExistingDittoRuntimeException
test_case.invocations: mock build dittoHeaders newBuilder hasNoHref hasCause hasMessage hasDescription hasDittoHeaders hasStatusCode hasErrorCode assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void copyAndAlterExistingDittoRuntimeException()
focal_class.declarator: serialVersionUID = -7010323324132561106L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -7010323324132561106L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: errorCode
focal_class.modifier: private final
focal_class.original_string: private final String errorCode;
focal_class.type: String
focal_class.var_name: errorCode
focal_class.declarator: statusCode
focal_class.modifier: private final
focal_class.original_string: private final HttpStatusCode statusCode;
focal_class.type: HttpStatusCode
focal_class.var_name: statusCode
focal_class.declarator: description
focal_class.modifier: private final
focal_class.original_string: private final String description;
focal_class.type: String
focal_class.var_name: description
focal_class.declarator: href
focal_class.modifier: private final
focal_class.original_string: private final URI href;
focal_class.type: URI
focal_class.var_name: href
focal_class.declarator: dittoHeaders
focal_class.modifier: private final transient
focal_class.original_string: private final transient DittoHeaders dittoHeaders;
focal_class.type: DittoHeaders
focal_class.var_name: dittoHeaders
focal_class.file: model/base/src/main/java/org/eclipse/ditto/model/base/exceptions/DittoRuntimeException.java
focal_class.identifier: DittoRuntimeException
focal_class.interfaces: implements Jsonifiable.WithPredicate<JsonObject, JsonField>, WithDittoHeaders<DittoRuntimeException>,
          WithManifest
focal_class.class_method_signature: DittoRuntimeException.DittoRuntimeException(final String errorCode,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.full_signature: protected  DittoRuntimeException(final String errorCode,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.identifier: DittoRuntimeException
focal_class.modifiers: protected
focal_class.parameters: (final String errorCode,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.signature:  DittoRuntimeException(final String errorCode,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.class_method_signature: DittoRuntimeException.getEmptyBuilder()
focal_class.full_signature: protected DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> getEmptyBuilder()
focal_class.identifier: getEmptyBuilder
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException>
focal_class.signature: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> getEmptyBuilder()
focal_class.class_method_signature: DittoRuntimeException.getBuilder()
focal_class.full_signature: public DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> getBuilder()
focal_class.identifier: getBuilder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException>
focal_class.signature: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> getBuilder()
focal_class.class_method_signature: DittoRuntimeException.asDittoRuntimeException(final Throwable throwable,
              final Function<Throwable, DittoRuntimeException> alternativeExceptionBuilder)
focal_class.full_signature: public static DittoRuntimeException asDittoRuntimeException(final Throwable throwable,
              final Function<Throwable, DittoRuntimeException> alternativeExceptionBuilder)
focal_class.identifier: asDittoRuntimeException
focal_class.modifiers: public static
focal_class.parameters: (final Throwable throwable,
              final Function<Throwable, DittoRuntimeException> alternativeExceptionBuilder)
focal_class.return: DittoRuntimeException
focal_class.signature: DittoRuntimeException asDittoRuntimeException(final Throwable throwable,
              final Function<Throwable, DittoRuntimeException> alternativeExceptionBuilder)
focal_class.class_method_signature: DittoRuntimeException.getRootCause(final Throwable throwable)
focal_class.full_signature: private static Throwable getRootCause(final Throwable throwable)
focal_class.identifier: getRootCause
focal_class.modifiers: private static
focal_class.parameters: (final Throwable throwable)
focal_class.return: Throwable
focal_class.signature: Throwable getRootCause(final Throwable throwable)
focal_class.class_method_signature: DittoRuntimeException.newBuilder(final String errorCode, final HttpStatusCode statusCode)
focal_class.full_signature: public static Builder newBuilder(final String errorCode, final HttpStatusCode statusCode)
focal_class.identifier: newBuilder
focal_class.modifiers: public static
focal_class.parameters: (final String errorCode, final HttpStatusCode statusCode)
focal_class.return: Builder
focal_class.signature: Builder newBuilder(final String errorCode, final HttpStatusCode statusCode)
focal_class.class_method_signature: DittoRuntimeException.newBuilder(
              final DittoRuntimeException dittoRuntimeException)
focal_class.full_signature: public static DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> newBuilder(
              final DittoRuntimeException dittoRuntimeException)
focal_class.identifier: newBuilder
focal_class.modifiers: public static
focal_class.parameters: (
              final DittoRuntimeException dittoRuntimeException)
focal_class.return: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException>
focal_class.signature: DittoRuntimeExceptionBuilder<? extends DittoRuntimeException> newBuilder(
              final DittoRuntimeException dittoRuntimeException)
focal_class.class_method_signature: DittoRuntimeException.readHRef(final JsonObject jsonObject)
focal_class.full_signature: @Deprecated protected static Optional<URI> readHRef(final JsonObject jsonObject)
focal_class.identifier: readHRef
focal_class.modifiers: @Deprecated protected static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: Optional<URI>
focal_class.signature: Optional<URI> readHRef(final JsonObject jsonObject)
focal_class.class_method_signature: DittoRuntimeException.readMessage(final JsonObject jsonObject)
focal_class.full_signature: @Deprecated protected static String readMessage(final JsonObject jsonObject)
focal_class.identifier: readMessage
focal_class.modifiers: @Deprecated protected static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: String
focal_class.signature: String readMessage(final JsonObject jsonObject)
focal_class.class_method_signature: DittoRuntimeException.readDescription(final JsonObject jsonObject)
focal_class.full_signature: @Deprecated protected static Optional<String> readDescription(final JsonObject jsonObject)
focal_class.identifier: readDescription
focal_class.modifiers: @Deprecated protected static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> readDescription(final JsonObject jsonObject)
focal_class.class_method_signature: DittoRuntimeException.getErrorCode()
focal_class.full_signature: public String getErrorCode()
focal_class.identifier: getErrorCode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getErrorCode()
focal_class.class_method_signature: DittoRuntimeException.getStatusCode()
focal_class.full_signature: public HttpStatusCode getStatusCode()
focal_class.identifier: getStatusCode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: HttpStatusCode
focal_class.signature: HttpStatusCode getStatusCode()
focal_class.class_method_signature: DittoRuntimeException.getDittoHeaders()
focal_class.full_signature: @Override public DittoHeaders getDittoHeaders()
focal_class.identifier: getDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DittoHeaders
focal_class.signature: DittoHeaders getDittoHeaders()
focal_class.class_method_signature: DittoRuntimeException.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public DittoRuntimeException setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: DittoRuntimeException
focal_class.signature: DittoRuntimeException setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: DittoRuntimeException.getImplementedSchemaVersion()
focal_class.full_signature: @Override public JsonSchemaVersion getImplementedSchemaVersion()
focal_class.identifier: getImplementedSchemaVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonSchemaVersion
focal_class.signature: JsonSchemaVersion getImplementedSchemaVersion()
focal_class.class_method_signature: DittoRuntimeException.getDescription()
focal_class.full_signature: public Optional<String> getDescription()
focal_class.identifier: getDescription
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getDescription()
focal_class.class_method_signature: DittoRuntimeException.getHref()
focal_class.full_signature: public Optional<URI> getHref()
focal_class.identifier: getHref
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<URI>
focal_class.signature: Optional<URI> getHref()
focal_class.class_method_signature: DittoRuntimeException.getManifest()
focal_class.full_signature: @Override public String getManifest()
focal_class.identifier: getManifest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getManifest()
focal_class.class_method_signature: DittoRuntimeException.equals(@Nullable final Object o)
focal_class.full_signature: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "OverlyComplexMethod"}) @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "OverlyComplexMethod"}) @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: DittoRuntimeException.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DittoRuntimeException.toJson()
focal_class.full_signature: @Override public JsonObject toJson()
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson()
focal_class.class_method_signature: DittoRuntimeException.toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override public JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: DittoRuntimeException.fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.full_signature: public static T fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.return: T
focal_class.signature: T fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.class_method_signature: DittoRuntimeException.fromMessage(@Nullable final String message,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.full_signature: public static T fromMessage(@Nullable final String message,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.identifier: fromMessage
focal_class.modifiers: public static
focal_class.parameters: (@Nullable final String message,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.return: T
focal_class.signature: T fromMessage(@Nullable final String message,
              final DittoHeaders dittoHeaders, final DittoRuntimeExceptionBuilder<T> builder)
focal_class.class_method_signature: DittoRuntimeException.appendToJson(final JsonObjectBuilder jsonObjectBuilder, final Predicate<JsonField> predicate)
focal_class.full_signature: protected void appendToJson(final JsonObjectBuilder jsonObjectBuilder, final Predicate<JsonField> predicate)
focal_class.identifier: appendToJson
focal_class.modifiers: protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final Predicate<JsonField> predicate)
focal_class.return: void
focal_class.signature: void appendToJson(final JsonObjectBuilder jsonObjectBuilder, final Predicate<JsonField> predicate)
focal_class.class_method_signature: DittoRuntimeException.toBuilder(final DittoRuntimeExceptionBuilder<T> builder)
focal_class.full_signature: protected DittoRuntimeExceptionBuilder<T> toBuilder(final DittoRuntimeExceptionBuilder<T> builder)
focal_class.identifier: toBuilder
focal_class.modifiers: protected
focal_class.parameters: (final DittoRuntimeExceptionBuilder<T> builder)
focal_class.return: DittoRuntimeExceptionBuilder<T>
focal_class.signature: DittoRuntimeExceptionBuilder<T> toBuilder(final DittoRuntimeExceptionBuilder<T> builder)
focal_class.class_method_signature: DittoRuntimeException.fromUnknownErrorJson(final JsonObject jsonObject,
              final DittoHeaders headers)
focal_class.full_signature: public static Optional<DittoRuntimeException> fromUnknownErrorJson(final JsonObject jsonObject,
              final DittoHeaders headers)
focal_class.identifier: fromUnknownErrorJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject,
              final DittoHeaders headers)
focal_class.return: Optional<DittoRuntimeException>
focal_class.signature: Optional<DittoRuntimeException> fromUnknownErrorJson(final JsonObject jsonObject,
              final DittoHeaders headers)
focal_class.class_method_signature: DittoRuntimeException.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends RuntimeException
focal_method.body: public static Builder newBuilder(final String errorCode, final HttpStatusCode statusCode) {
          return new Builder(errorCode, statusCode);
      }
focal_method.class_method_signature: DittoRuntimeException.newBuilder(final String errorCode, final HttpStatusCode statusCode)
focal_method.full_signature: public static Builder newBuilder(final String errorCode, final HttpStatusCode statusCode)
focal_method.identifier: newBuilder
focal_method.modifiers: public static
focal_method.parameters: (final String errorCode, final HttpStatusCode statusCode)
focal_method.return: Builder
focal_method.signature: Builder newBuilder(final String errorCode, final HttpStatusCode statusCode)