test_class.declarator: KNOWN_CORRELATION_ID = UUID.randomUUID().toString()
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_CORRELATION_ID = UUID.randomUUID().toString();
test_class.type: String
test_class.var_name: KNOWN_CORRELATION_ID
test_class.declarator: KNOWN_TIMEOUT = Duration.ofMillis(1337)
test_class.modifier: private static final
test_class.original_string: private static final Duration KNOWN_TIMEOUT = Duration.ofMillis(1337);
test_class.type: Duration
test_class.var_name: KNOWN_TIMEOUT
test_class.declarator: KNOWN_JSON_REPRESENTATION = JsonObject.newBuilder()
              .set(DittoRuntimeException.JsonFields.ERROR_CODE, AcknowledgementRequestTimeoutException.ERROR_CODE)
              .set(DittoRuntimeException.JsonFields.MESSAGE,
                      MessageFormat.format(AcknowledgementRequestTimeoutException.MESSAGE_TEMPLATE,
                              KNOWN_TIMEOUT.toMillis()))
              .set(DittoRuntimeException.JsonFields.DESCRIPTION,
                      AcknowledgementRequestTimeoutException.DEFAULT_DESCRIPTION)
              .set(DittoRuntimeException.JsonFields.STATUS, HttpStatusCode.REQUEST_TIMEOUT.toInt())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON_REPRESENTATION = JsonObject.newBuilder()
              .set(DittoRuntimeException.JsonFields.ERROR_CODE, AcknowledgementRequestTimeoutException.ERROR_CODE)
              .set(DittoRuntimeException.JsonFields.MESSAGE,
                      MessageFormat.format(AcknowledgementRequestTimeoutException.MESSAGE_TEMPLATE,
                              KNOWN_TIMEOUT.toMillis()))
              .set(DittoRuntimeException.JsonFields.DESCRIPTION,
                      AcknowledgementRequestTimeoutException.DEFAULT_DESCRIPTION)
              .set(DittoRuntimeException.JsonFields.STATUS, HttpStatusCode.REQUEST_TIMEOUT.toInt())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON_REPRESENTATION
test_class.file: signals/acks/base/src/test/java/org/eclipse/ditto/signals/acks/base/AcknowledgementRequestTimeoutExceptionTest.java
test_class.identifier: AcknowledgementRequestTimeoutExceptionTest
test_case.body: @Test
      public void toJsonReturnsExpected() {
          final DittoHeaders dittoHeaders = DittoHeaders.newBuilder().correlationId(KNOWN_CORRELATION_ID).build();
          final AcknowledgementRequestTimeoutException underTest =
                  AcknowledgementRequestTimeoutException.newBuilder(KNOWN_TIMEOUT)
                          .dittoHeaders(dittoHeaders)
                          .build();
  
          final JsonObject actual = underTest.toJson();
  
          assertThat(actual).isEqualTo(KNOWN_JSON_REPRESENTATION);
      }
test_case.class_method_signature: AcknowledgementRequestTimeoutExceptionTest.toJsonReturnsExpected()
test_case.full_signature: @Test public void toJsonReturnsExpected()
test_case.identifier: toJsonReturnsExpected
test_case.invocations: build correlationId newBuilder build dittoHeaders newBuilder toJson isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonReturnsExpected()
focal_class.declarator: ERROR_CODE = ERROR_CODE_PREFIX + "request.timeout"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_CODE = ERROR_CODE_PREFIX + "request.timeout";
focal_class.type: String
focal_class.var_name: ERROR_CODE
focal_class.declarator: MESSAGE_TEMPLATE = "The acknowledgement request reached the specified timeout of {0}ms."
focal_class.modifier: static final
focal_class.original_string: static final String MESSAGE_TEMPLATE = "The acknowledgement request reached the specified timeout of {0}ms.";
focal_class.type: String
focal_class.var_name: MESSAGE_TEMPLATE
focal_class.declarator: DEFAULT_DESCRIPTION =
              "Try increasing the timeout and make sure that the requested acknowledgement is sent back in time."
focal_class.modifier: static final
focal_class.original_string: static final String DEFAULT_DESCRIPTION =
              "Try increasing the timeout and make sure that the requested acknowledgement is sent back in time.";
focal_class.type: String
focal_class.var_name: DEFAULT_DESCRIPTION
focal_class.declarator: serialVersionUID = -6234783976182314364L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -6234783976182314364L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: signals/acks/base/src/main/java/org/eclipse/ditto/signals/acks/base/AcknowledgementRequestTimeoutException.java
focal_class.identifier: AcknowledgementRequestTimeoutException
focal_class.interfaces: implements AcknowledgementException
focal_class.class_method_signature: AcknowledgementRequestTimeoutException.AcknowledgementRequestTimeoutException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.full_signature: private  AcknowledgementRequestTimeoutException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.identifier: AcknowledgementRequestTimeoutException
focal_class.modifiers: private
focal_class.parameters: (final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.signature:  AcknowledgementRequestTimeoutException(final DittoHeaders dittoHeaders,
              @Nullable final String message,
              @Nullable final String description,
              @Nullable final Throwable cause,
              @Nullable final URI href)
focal_class.class_method_signature: AcknowledgementRequestTimeoutException.AcknowledgementRequestTimeoutException(final Duration timeout)
focal_class.full_signature: public  AcknowledgementRequestTimeoutException(final Duration timeout)
focal_class.identifier: AcknowledgementRequestTimeoutException
focal_class.modifiers: public
focal_class.parameters: (final Duration timeout)
focal_class.signature:  AcknowledgementRequestTimeoutException(final Duration timeout)
focal_class.class_method_signature: AcknowledgementRequestTimeoutException.getMessage(final Duration timeout)
focal_class.full_signature: private static String getMessage(final Duration timeout)
focal_class.identifier: getMessage
focal_class.modifiers: private static
focal_class.parameters: (final Duration timeout)
focal_class.return: String
focal_class.signature: String getMessage(final Duration timeout)
focal_class.class_method_signature: AcknowledgementRequestTimeoutException.newBuilder(final Duration timeout)
focal_class.full_signature: public static AcknowledgementRequestTimeoutException.Builder newBuilder(final Duration timeout)
focal_class.identifier: newBuilder
focal_class.modifiers: public static
focal_class.parameters: (final Duration timeout)
focal_class.return: AcknowledgementRequestTimeoutException.Builder
focal_class.signature: AcknowledgementRequestTimeoutException.Builder newBuilder(final Duration timeout)
focal_class.class_method_signature: AcknowledgementRequestTimeoutException.fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static AcknowledgementRequestTimeoutException fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.return: AcknowledgementRequestTimeoutException
focal_class.signature: AcknowledgementRequestTimeoutException fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.superclass: extends DittoRuntimeException
focal_method.body: public static AcknowledgementRequestTimeoutException.Builder newBuilder(final Duration timeout) {
          return new AcknowledgementRequestTimeoutException.Builder(checkNotNull(timeout, "timeout"));
      }
focal_method.class_method_signature: AcknowledgementRequestTimeoutException.newBuilder(final Duration timeout)
focal_method.full_signature: public static AcknowledgementRequestTimeoutException.Builder newBuilder(final Duration timeout)
focal_method.identifier: newBuilder
focal_method.invocations: checkNotNull
focal_method.modifiers: public static
focal_method.parameters: (final Duration timeout)
focal_method.return: AcknowledgementRequestTimeoutException.Builder
focal_method.signature: AcknowledgementRequestTimeoutException.Builder newBuilder(final Duration timeout)