一个错误基类:
[Serializable]
public abstract class ErrorBase : Exception
{
    
private string psID = string.Empty;

    
public ErrorBase()
    {
    }

    
public ErrorBase(string aoMessage) : base(aoMessage)
    {
    }

    
protected ErrorBase(SerializationInfo info, StreamingContext context) : base(info, context)
    {
    }

    
public ErrorBase(string aoMessage, Exception aoInnerException) : base(aoMessage, aoInnerException)
    {
    }

    
public string ID
    {
        
get
        {
            
return this.psID;
        }
        
protected set
        {
            
this.psID = value;
        }
    }
}

 
    大家看看里面有多少问题,还是基类,汗水。。。
    至少我看了这段代码,就超级想辞职。。。

posted on 2007-11-07 14:01  Zhenway  阅读(428)  评论(5编辑  收藏  举报