using System; namespace MAX { public class MAXException : Exception { private int _errorCode; public MAXException() { } public MAXException(int errorCode, string message) : base(message) { _errorCode = errorCode; } public MAXException(int errorCode, string message, Exception innerException) : base(message, innerException) { _errorCode = errorCode; } public int ErrorCode { get { return _errorCode; } set { _errorCode = value; } } } }