RPCException.cs 385 B

12345678910111213141516171819
  1. using InABox.Rpc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace InABox.Rpc
  8. {
  9. public class RpcException : Exception
  10. {
  11. public RpcError Error { get; set; }
  12. public RpcException(string? message, RpcError error): base(message)
  13. {
  14. Error = error;
  15. }
  16. }
  17. }