@Test void errorBodyResponseNull() { Assertions .assertThatThrownBy(() -> { throw new InfluxException(new IllegalStateException("unExpectedError")); }) .matches((Predicate<Throwable>) throwable -> ((InfluxException) throwable).errorBody().toString().equals("{}")); }
@Nonnull public JSONObject errorBody() { return errorBody; }
InfluxException extends RuntimeException { @Nonnull public JSONObject errorBody() { return errorBody; } }
InfluxException extends RuntimeException { @Nonnull public JSONObject errorBody() { return errorBody; } InfluxException(@Nullable final String message);  InfluxException(@Nullable final Throwable cause);  InfluxException(@Nullable final Response<?> cause); }
InfluxException extends RuntimeException { @Nonnull public JSONObject errorBody() { return errorBody; } InfluxException(@Nullable final String message);  InfluxException(@Nullable final Throwable cause);  InfluxException(@Nullable final Response<?> cause); @Override String getMessage(); int reference(); int status(); @Nonnull JSONObject errorBody(); }
InfluxException extends RuntimeException { @Nonnull public JSONObject errorBody() { return errorBody; } InfluxException(@Nullable final String message);  InfluxException(@Nullable final Throwable cause);  InfluxException(@Nullable final Response<?> cause); @Override String getMessage(); int reference(); int status(); @Nonnull JSONObject errorBody();  }