| | 1 | | namespace Towel; |
| | 2 | |
|
| | 3 | | /// <summary>Represents a bug in the Towel project. Please report it.</summary> |
| | 4 | | public class TowelBugException : Exception |
| | 5 | | { |
| | 6 | | internal static readonly string reportMessage = |
| | 7 | | Environment.NewLine + |
| | 8 | | Environment.NewLine + |
| | 9 | | "Please submit this issue to the Towel GitHub repository. " + |
| | 10 | | Environment.NewLine + |
| | 11 | | "https://github.com/ZacharyPatten/Towel/issues/new/choose"; |
| | 12 | |
|
| | 13 | | /// <summary>Represents a bug in the Towel project. Please report it.</summary> |
| | 14 | | /// <param name="message">The message of the exception.</param> |
| | 15 | | public TowelBugException(string message) : base(message + reportMessage) { } |
| | 16 | |
|
| | 17 | | /// <summary>Represents a bug in the Towel project. Please report it.</summary> |
| | 18 | | /// <param name="message">The message of the exception.</param> |
| | 19 | | /// <param name="innerException">The inner exception.</param> |
| | 20 | | public TowelBugException(string message, Exception innerException) : base(message + reportMessage, innerException) { } |
| | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary>Thrown when a data structure operation fails due to external corruption.</summary> |
| | 24 | | public class CorruptedDataStructureException : Exception |
| | 25 | | { |
| | 26 | | /// <summary>Thrown when a data structure operation fails due to external corruption.</summary> |
| | 27 | | public CorruptedDataStructureException() : base() { } |
| | 28 | |
|
| | 29 | | /// <summary>Thrown when a data structure operation fails due to external corruption.</summary> |
| | 30 | | /// <param name="message">The message of the exception.</param> |
| | 31 | | public CorruptedDataStructureException(string message) : base(message) { } |
| | 32 | |
|
| | 33 | | /// <summary>Thrown when a data structure operation fails due to external corruption.</summary> |
| | 34 | | /// <param name="message">The message of the exception.</param> |
| | 35 | | /// <param name="innerException">The inner exception.</param> |
| | 36 | | public CorruptedDataStructureException(string message, Exception innerException) : base(message, innerException) { } |
| | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary>Thrown when the inequality syntax is missused.</summary> |
| | 40 | | public class InequalitySyntaxException : Exception |
| | 41 | | { |
| | 42 | | /// <summary>Thrown when the inequality syntax is missused.</summary> |
| | 43 | | public InequalitySyntaxException() : base() { } |
| | 44 | | /// <summary>Thrown when the inequality syntax is missused.</summary> |
| | 45 | | /// <param name="message">The message of the exception.</param> |
| | 46 | | public InequalitySyntaxException(string message) : base(message) { } |
| | 47 | | /// <summary>Thrown when the inequality syntax is missused.</summary> |
| | 48 | | /// <param name="message">The message of the exception.</param> |
| | 49 | | /// <param name="innerException">The inner exception.</param> |
| | 50 | | public InequalitySyntaxException(string message, Exception innerException) : base(message, innerException) { } |
| | 51 | | } |
| | 52 | |
|
| | 53 | | /// <summary>Thrown when an internal documentation method is called.</summary> |
| | 54 | | public class DocumentationMethodException : Exception |
| | 55 | | { |
| | 56 | | /// <summary>Thrown when an internal documentation method is called.</summary> |
| 138 | 57 | | public DocumentationMethodException() : base() { } |
| | 58 | | /// <summary>Thrown when an internal documentation method is called.</summary> |
| | 59 | | /// <param name="message">The message of the exception.</param> |
| 0 | 60 | | public DocumentationMethodException(string message) : base(message) { } |
| | 61 | | /// <summary>Thrown when an internal documentation method is called.</summary> |
| | 62 | | /// <param name="message">The message of the exception.</param> |
| | 63 | | /// <param name="innerException">The inner exception.</param> |
| 0 | 64 | | public DocumentationMethodException(string message, Exception innerException) : base(message, innerException) { } |
| | 65 | | } |