sharp-application-server/exceptions/ApplicationServerException.cs

29 lines
777 B
C#

using System;
namespace appsrv.exceptions
{
public class ApplicationServerException : Exception
{
public int StatusCode { get; } = 500;
public ApplicationServerException(String message)
: base(message)
{
}
public ApplicationServerException(String message, Exception innerException)
: base(message, innerException)
{
}
public ApplicationServerException(int statusCode,String message)
: base(message)
{
StatusCode = statusCode;
}
public ApplicationServerException(int statusCode,String message, Exception innerException)
: base(message, innerException)
{
StatusCode = statusCode;
}
}
}