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

namespace EQNetwork.Utility
{
    public class EQException : Exception
    {
        public int Code;

        public EQException(int code, string message)
            : base(message)
        {
            Code = code;
        }

        public EQException(int code, string message, Exception innerException)
            : base(message, innerException)
        {
            Code = code;
        }

        public EQException(Exception ex)
            : base("An exception has occurred", ex)
        {
            Code = 0;
        }
    }
}
