30 lines
714 B
C#
30 lines
714 B
C#
using System;
|
|
|
|
namespace ln.http.exceptions
|
|
{
|
|
public class HttpException : Exception
|
|
{
|
|
public int StatusCode { get; } = 500;
|
|
|
|
public HttpException(String message)
|
|
: base(message)
|
|
{
|
|
}
|
|
public HttpException(String message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
public HttpException(int statusCode,String message)
|
|
: base(message)
|
|
{
|
|
StatusCode = statusCode;
|
|
}
|
|
public HttpException(int statusCode,String message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
StatusCode = statusCode;
|
|
}
|
|
|
|
}
|
|
}
|