123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace EdjCase.JsonRpc.Router
- {
- /// <summary>
- /// Base exception for all rpc router exceptions
- /// </summary>
- public abstract class RpcRouterException : Exception
- {
- /// <param name="message">Error message</param>
- protected RpcRouterException(string message, Exception ex = null) : base(message, ex)
- {
- }
- }
- /// <summary>
- /// Exception for bad configuration of the Rpc server
- /// </summary>
- //Not a response exception so it is not an `RpcException`
- public class RpcConfigurationException : RpcRouterException
- {
- /// <param name="message">Error message</param>
- public RpcConfigurationException(string message) : base(message)
- {
- }
- }
- /// <summary>
- /// Exception for a canceled rpc request
- /// </summary>
- //Not a response exception so it is not an `RpcException`
- public class RpcCanceledRequestException : RpcRouterException
- {
- /// <param name="message">Error message</param>
- public RpcCanceledRequestException(string message, Exception ex = null) : base(message, ex)
- {
- }
- }
- }
|