diff --git a/runtime/src/main/java/org/capnproto/RpcException.java b/runtime/src/main/java/org/capnproto/RpcException.java deleted file mode 100644 index 5f0184af..00000000 --- a/runtime/src/main/java/org/capnproto/RpcException.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.capnproto; - -public final class RpcException extends java.lang.Exception { - - public enum Type { - FAILED, - OVERLOADED, - DISCONNECTED, - UNIMPLEMENTED - } - - private final Type type; - - public RpcException(Type type, String message) { - super(message); - this.type = type; - } - - public final Type getType() { - return type; - } - - public static RpcException unimplemented(String message) { - return new RpcException(Type.UNIMPLEMENTED, message); - } - - public static RpcException failed(String message) { - return new RpcException(Type.FAILED, message); - } - - public static RpcException disconnected(String message) { - return new RpcException(Type.DISCONNECTED, message); - } -}