Skip to content

Commit d134825

Browse files
j-bakerRobert Fink
authored andcommitted
Add an error type of 'timeout' (#67)
1 parent c637211 commit d134825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errors/src/main/java/com/palantir/remoting/api/errors/ErrorType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public enum Code {
4242
CONFLICT(409),
4343
FAILED_PRECONDITION(500),
4444
INTERNAL(500),
45+
TIMEOUT(500),
4546
CUSTOM_CLIENT(400),
4647
CUSTOM_SERVER(500);
4748

@@ -61,6 +62,7 @@ public enum Code {
6162
public static final ErrorType FAILED_PRECONDITION =
6263
createInternal(Code.FAILED_PRECONDITION, "Default:FailedPrecondition");
6364
public static final ErrorType INTERNAL = createInternal(Code.INTERNAL, "Default:Internal");
65+
public static final ErrorType TIMEOUT = createInternal(Code.TIMEOUT, "Default:Timeout");
6466

6567
/** The {@link Code} of this error. */
6668
public abstract Code code();

0 commit comments

Comments
 (0)