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