forked from stevenh/HttpServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotFoundException.cs
29 lines (27 loc) · 945 Bytes
/
NotFoundException.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
using System;
using System.Net;
namespace HttpServer
{
/// <summary>
/// Request couldn't be parsed successfully.
/// </summary>
public class NotFoundException : HttpException
{
/// <summary>
/// Initializes a new instance of the <see cref="BadRequestException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
public NotFoundException(string errMsg) : base(HttpStatusCode.NotFound, errMsg)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="BadRequestException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
/// <param name="inner">Exception description.</param>
public NotFoundException(string errMsg, Exception inner)
: base(HttpStatusCode.NotFound, errMsg, inner)
{
}
}
}