using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IpcLibrary.Core.Exceptions {
    /// <summary>
    /// IPC异常基类
    /// </summary>
    public class IPCException : Exception {
        public IPCException(string message) : base(message) { }
        public IPCException(string message, Exception innerException) : base(message, innerException) { }
    }
    /// <summary>
    /// 连接异常
    /// </summary>
    public class ConnectionException : IPCException {
        public ConnectionException(string message) : base(message) { }
        public ConnectionException(string message, Exception innerException) : base(message, innerException) { }
    }
    /// <summary>
    /// 方法调用异常
    /// </summary>
    public class MethodCallException : IPCException {
        public MethodCallException(string message) : base(message) { }
        public MethodCallException(string message, Exception innerException) : base(message, innerException) { }
    }
    /// <summary>
    /// 超时异常
    /// </summary>
    public class TimeoutException : IPCException {
        public TimeoutException(string message) : base(message) { }
        public TimeoutException(string message, Exception innerException) : base(message, innerException) { }
    }
}
