using System;
using System.Runtime.Serialization;
namespace WebApplication1.Exceptions
{
/// <summary>
/// 扩展Exception对象,添加了AssemblyVersion、Method、UserName等属性。
/// </summary>
public class BasePortalException : Exception
{
private string m_AssemblyVersion;
private string m_Method;
private string m_FileName;
private int m_FileLineNumber;
private int m_FileColumnNumber;
private int m_PortalID;
private string m_PortalName;
private int m_UserID;
private string m_UserName;
private int m_ActiveTabID;
private string m_ActiveTabName;
private string m_AbsoluteURL;
private string m_AbsoluteURLReferrer;
private string m_ExceptionGUID;
private string m_DefaultDataProvider;
public BasePortalException()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public BasePortalException(string message)
{
}
public BasePortalException(string message, Exception inner)
{
}
public BasePortalException(SerializationInfo info, StreamingContext context)
{
}
public string AssemblyVersion
{
get
{
return m_AssemblyVersion;
}
}
public string Method
{
get
{
return m_Method;
}
}
public string FileName
{
get
{
return m_FileName;
}
}
public int FileLineNumber
{
get
{
return m_FileLineNumber;
}
}
public int FileColumnNumber
{
get
{
return m_FileColumnNumber;
}
}
public int PortalID
{
get
{
return PortalID;
}
}
public string PortalName
{
get
{
return m_PortalName;
}
}
public int UserID
{
get
{
return m_UserID;
}
}
public string UserName
{
get
{
return m_UserName;
}
}
public int ActiveTabID
{
get
{
return m_ActiveTabID;
}
}
public string ActiveTabName
{
get
{
return m_ActiveTabName;
}
}
public string AbsoluteURL
{
get
{
return m_AbsoluteURL;
}
}
public string AbsoluteURLReferrer
{
get
{
return m_AbsoluteURLReferrer;
}
}
public string ExceptionGUID
{
get
{
return m_ExceptionGUID;
}
}
public string DefaultDataProvider
{
get
{
return m_DefaultDataProvider;
}
}
}
}