forked from stevenh/HttpServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForbiddenException.cs
34 lines (32 loc) · 1.11 KB
/
ForbiddenException.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
31
32
33
34
using System;
using System.Net;
namespace HttpServer
{
/// <summary>
/// Requested resource may not be accessed.
/// </summary>
/// <remarks>
/// Normally thrown after an authentication attempt have failed too many times.
/// </remarks>
/// <seealso cref="AuthenticationRequiredException"/>
public class ForbiddenException : HttpException
{
/// <summary>
/// Initializes a new instance of the <see cref="ForbiddenException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
public ForbiddenException(string errMsg)
: base(HttpStatusCode.Forbidden, errMsg)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ForbiddenException"/> class.
/// </summary>
/// <param name="errMsg">Exception description.</param>
/// <param name="inner">Inner exception.</param>
protected ForbiddenException(string errMsg, Exception inner)
: base(HttpStatusCode.Forbidden, errMsg, inner)
{
}
}
}