forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStrictModeException.cs
More file actions
33 lines (28 loc) · 912 Bytes
/
StrictModeException.cs
File metadata and controls
33 lines (28 loc) · 912 Bytes
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
using System;
namespace ServiceStack
{
/// <summary>
/// Additional checks to notify of invalid state, configuration or use of ServiceStack libraries.
/// Can disable StrictMode checks with Config.StrictMode = false;
/// </summary>
public class StrictModeException : ArgumentException
{
public string Code { get; set; }
public StrictModeException() {}
public StrictModeException(string message, string code = null)
: base(message)
{
Code = code;
}
public StrictModeException(string message, Exception innerException, string code = null)
: base(message, innerException)
{
Code = code;
}
public StrictModeException(string message, string paramName, string code = null)
: base(message, paramName)
{
Code = code;
}
}
}