Commit cb37a12d authored by Nordin Rahman's avatar Nordin Rahman

Ensure exception defined in project inherited from common ProxyException class

parent f9029cc3
......@@ -5,7 +5,7 @@ namespace Titanium.Web.Proxy.Exceptions
/// <summary>
/// An expception thrown when body is unexpectedly empty
/// </summary>
public class BodyNotFoundException : Exception
public class BodyNotFoundException : ProxyException
{
public BodyNotFoundException(string message)
: base(message)
......
......@@ -7,11 +7,19 @@ namespace Titanium.Web.Proxy.Exceptions
/// </summary>
public abstract class ProxyException : Exception
{
/// <summary>
/// Instantiate a new instance of this exception - must be invoked by derived classes' constructors
/// </summary>
/// <param name="message">Exception message</param>
protected ProxyException(string message) : base(message)
{
}
/// <summary>
/// Instantiate this exception - must be invoked by derived classes' constructors
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="message">Excception message</param>
/// <param name="innerException">Inner exception associated</param>
protected ProxyException(string message, Exception innerException) : base(message, innerException)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment