www.pudn.com > Fetion.rar > DownloadException.cs


namespace Imps.Client.Pc 
{ 
    using System; 
    using System.Runtime.Serialization; 
 
    [Serializable] 
    public class DownloadException : ApplicationException 
    { 
        private int _statusCode; 
 
        public DownloadException() 
        { 
            this._statusCode = 200; 
        } 
 
        public DownloadException(string message) : base(message) 
        { 
            this._statusCode = 200; 
        } 
 
        protected DownloadException(SerializationInfo info, StreamingContext context) : base(info, context) 
        { 
            this._statusCode = 200; 
        } 
 
        public DownloadException(string message, Exception inner) : base(message, inner) 
        { 
            this._statusCode = 200; 
        } 
 
        public DownloadException(string message, int statusCode) : base(message) 
        { 
            this._statusCode = 200; 
            this.StatusCode = statusCode; 
        } 
 
        public DownloadException(string message, int statusCode, Exception inner) : base(message, inner) 
        { 
            this._statusCode = 200; 
            this.StatusCode = statusCode; 
        } 
 
        public int StatusCode 
        { 
            get 
            { 
                return this._statusCode; 
            } 
            private set 
            { 
                this._statusCode = value; 
            } 
        } 
    } 
}