diff options
Diffstat (limited to 'src/csharp/GrpcCore/RpcException.cs')
-rw-r--r-- | src/csharp/GrpcCore/RpcException.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/csharp/GrpcCore/RpcException.cs b/src/csharp/GrpcCore/RpcException.cs new file mode 100644 index 0000000000..8811c3a7c7 --- /dev/null +++ b/src/csharp/GrpcCore/RpcException.cs @@ -0,0 +1,27 @@ +using System; + +namespace Google.GRPC.Core +{ + public class RpcException : Exception + { + private readonly Status status; + + public RpcException(Status status) + { + this.status = status; + } + + public RpcException(Status status, string message) : base(message) + { + this.status = status; + } + + public Status Status { + get + { + return status; + } + } + } +} + |