Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private void timeout() {
StatusCode.Code.DEADLINE_EXCEEDED.getHttpStatusCode(),
"Deadline exceeded",
new HttpJsonStatusRuntimeException(
StatusCode.Code.DEADLINE_EXCEEDED.getHttpStatusCode(), "Deadline exceeded", null),
StatusCode.Code.DEADLINE_EXCEEDED.getHttpStatusCode(), "Deadline exceeded"),
true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public class HttpJsonStatusRuntimeException extends RuntimeException {

private final int statusCode;

public HttpJsonStatusRuntimeException(int statusCode, String message) {
super(message);
this.statusCode = statusCode;
}

public HttpJsonStatusRuntimeException(int statusCode, String message, Throwable cause) {
super(message, cause);
this.statusCode = statusCode;
Expand Down
Loading