一个错误基类:
至少我看了这段代码,就超级想辞职。。。
[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;
}
}
}
大家看看里面有多少问题,还是基类,汗水。。。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;
}
}
}
至少我看了这段代码,就超级想辞职。。。