forked from stevenh/HttpServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInternalServerException.cs
30 lines (28 loc) · 992 Bytes
/
InternalServerException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Net;
namespace HttpServer
{
/// <summary>
/// Something unexpected went wrong.
/// </summary>
public class InternalServerException : HttpException
{
/// <summary>
/// Initializes a new instance of the <see cref="InternalServerException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
public InternalServerException(string errMsg)
: base(HttpStatusCode.InternalServerError, errMsg)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="InternalServerException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
/// <param name="inner">Inner exception.</param>
public InternalServerException(string errMsg, Exception inner)
: base(HttpStatusCode.InternalServerError, errMsg, inner)
{
}
}
}