|
using System;
using System.Collections.Generic;
using System.Text;
namespace Framework.Lib
{
public class wiseException : System.Exception
{
#region string Message
public new string Message
{
get
{
return base.Message;
}
}
#endregion
#region Exception InnerException
public new Exception InnerException
{
get
{
return base.InnerException;
}
}
#endregion
#region Constructor
public wiseException()
: base()
{
}
public wiseException(string message)
: base(message)
{
}
public wiseException(string message, Exception innerException)
: base(message, innerException)
{
}
public wiseException(Exception theException, System.Reflection.MethodBase theMethod)
: base("***"+((System.Reflection.MemberInfo)(theMethod)).DeclaringType.FullName + "." +
theMethod.Name + ": " + theException.Message + "***", theException)
{
}
#endregion
}
#region baControllerException
/// <summary>
/// Controller Exceptions
/// </summary>
public class baControllerException : wiseException
{
public baControllerException(Exception theException, System.Reflection.MethodBase theMethod)
: base(theException, theMethod)
{
}
}
#endregion
#region baDALException
/// <summary>
/// Data Access Layer Exceptions
/// </summary>
public class baDALException : wiseException
{
public baDALException(Exception theException, System.Reflection.MethodBase theMethod)
: base(theException, theMethod)
{
}
}
#endregion
#region baModelException
/// <summary>
/// Model Layer Exceptions
/// </summary>
public class baModelException : wiseException
{
public baModelException(Exception theException, System.Reflection.MethodBase theMethod)
: base(theException, theMethod)
{
}
}
#endregion
#region baTransportationException
/// <summary>
/// Transportation layer exceptions
/// </summary>
public class baTransportationException : wiseException
{
public baTransportationException(Exception theException, System.Reflection.MethodBase theMethod)
: base(theException, theMethod)
{
}
}
#endregion
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.