-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Exceptions.cs
65 lines (57 loc) · 3.34 KB
/
Exceptions.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
namespace Towel;
/// <summary>Represents a bug in the Towel project. Please report it.</summary>
public class TowelBugException : Exception
{
internal static readonly string reportMessage =
Environment.NewLine +
Environment.NewLine +
"Please submit this issue to the Towel GitHub repository. " +
Environment.NewLine +
"https://github.com/ZacharyPatten/Towel/issues/new/choose";
/// <summary>Represents a bug in the Towel project. Please report it.</summary>
/// <param name="message">The message of the exception.</param>
public TowelBugException(string message) : base(message + reportMessage) { }
/// <summary>Represents a bug in the Towel project. Please report it.</summary>
/// <param name="message">The message of the exception.</param>
/// <param name="innerException">The inner exception.</param>
public TowelBugException(string message, Exception innerException) : base(message + reportMessage, innerException) { }
}
/// <summary>Thrown when a data structure operation fails due to external corruption.</summary>
public class CorruptedDataStructureException : Exception
{
/// <summary>Thrown when a data structure operation fails due to external corruption.</summary>
public CorruptedDataStructureException() : base() { }
/// <summary>Thrown when a data structure operation fails due to external corruption.</summary>
/// <param name="message">The message of the exception.</param>
public CorruptedDataStructureException(string message) : base(message) { }
/// <summary>Thrown when a data structure operation fails due to external corruption.</summary>
/// <param name="message">The message of the exception.</param>
/// <param name="innerException">The inner exception.</param>
public CorruptedDataStructureException(string message, Exception innerException) : base(message, innerException) { }
}
/// <summary>Thrown when the inequality syntax is missused.</summary>
public class InequalitySyntaxException : Exception
{
/// <summary>Thrown when the inequality syntax is missused.</summary>
public InequalitySyntaxException() : base() { }
/// <summary>Thrown when the inequality syntax is missused.</summary>
/// <param name="message">The message of the exception.</param>
public InequalitySyntaxException(string message) : base(message) { }
/// <summary>Thrown when the inequality syntax is missused.</summary>
/// <param name="message">The message of the exception.</param>
/// <param name="innerException">The inner exception.</param>
public InequalitySyntaxException(string message, Exception innerException) : base(message, innerException) { }
}
/// <summary>Thrown when an internal documentation method is called.</summary>
public class DocumentationMethodException : Exception
{
/// <summary>Thrown when an internal documentation method is called.</summary>
public DocumentationMethodException() : base() { }
/// <summary>Thrown when an internal documentation method is called.</summary>
/// <param name="message">The message of the exception.</param>
public DocumentationMethodException(string message) : base(message) { }
/// <summary>Thrown when an internal documentation method is called.</summary>
/// <param name="message">The message of the exception.</param>
/// <param name="innerException">The inner exception.</param>
public DocumentationMethodException(string message, Exception innerException) : base(message, innerException) { }
}