@Test public void testGetMessage() throws Exception { ApiException e = new ApiException("http: Arrays.asList(ApiErrorImpl.getNew(Arrays.asList("field1", "field2"), "errorMsg", "errorCode")), "respBody", "EXC_MSG"); assertEquals( "EXC_MSG " + "[url=<" + e.getUrl() + ">," + " httpResponseCode=<" + e.getHttpResponseCode() + ">, httpReason=<" + e.getHttpReason() + ">," + " errors=<" + e.getErrors() + ">, httpResponseBody=<" + e.getHttpResponseBody() + ">]", e.getMessage()); assertEquals("EXC_MSG [url=<http: " errors=<[ApiErrorImpl{fields=[field1, field2], message='errorMsg', errorCode='errorCode'}]>," + " httpResponseBody=<respBody>]", e.getMessage()); }
@Override public String getMessage() { return super .getMessage() + " [url=<" + url + ">, httpResponseCode=<" + httpResponseCode + ">, httpReason=<" + httpReason + ">, errors=<" + errors + ">, httpResponseBody=<" + httpResponseBody + ">]"; }
ApiException extends IOException { @Override public String getMessage() { return super .getMessage() + " [url=<" + url + ">, httpResponseCode=<" + httpResponseCode + ">, httpReason=<" + httpReason + ">, errors=<" + errors + ">, httpResponseBody=<" + httpResponseBody + ">]"; } }
ApiException extends IOException { @Override public String getMessage() { return super .getMessage() + " [url=<" + url + ">, httpResponseCode=<" + httpResponseCode + ">, httpReason=<" + httpReason + ">, errors=<" + errors + ">, httpResponseBody=<" + httpResponseBody + ">]"; } ApiException(@Nonnull String url, int httpResponseCode, @Nonnull String httpReason,
            @Nonnull List<ApiError> errors, @Nullable String httpResponseBody,
            @Nonnull String message); }
ApiException extends IOException { @Override public String getMessage() { return super .getMessage() + " [url=<" + url + ">, httpResponseCode=<" + httpResponseCode + ">, httpReason=<" + httpReason + ">, errors=<" + errors + ">, httpResponseBody=<" + httpResponseBody + ">]"; } ApiException(@Nonnull String url, int httpResponseCode, @Nonnull String httpReason,
            @Nonnull List<ApiError> errors, @Nullable String httpResponseBody,
            @Nonnull String message); @Override String getMessage(); @Nonnull String getUrl(); int getHttpResponseCode(); @CheckForNull String getHttpResponseBody(); @Nonnull String getHttpReason(); @Nonnull List<ApiError> getErrors(); }
ApiException extends IOException { @Override public String getMessage() { return super .getMessage() + " [url=<" + url + ">, httpResponseCode=<" + httpResponseCode + ">, httpReason=<" + httpReason + ">, errors=<" + errors + ">, httpResponseBody=<" + httpResponseBody + ">]"; } ApiException(@Nonnull String url, int httpResponseCode, @Nonnull String httpReason,
            @Nonnull List<ApiError> errors, @Nullable String httpResponseBody,
            @Nonnull String message); @Override String getMessage(); @Nonnull String getUrl(); int getHttpResponseCode(); @CheckForNull String getHttpResponseBody(); @Nonnull String getHttpReason(); @Nonnull List<ApiError> getErrors();  }