-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWriterSharpException.cs
More file actions
36 lines (28 loc) · 1.03 KB
/
Copy pathWriterSharpException.cs
File metadata and controls
36 lines (28 loc) · 1.03 KB
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
using System;
namespace WriterSharp.Exceptions
{
/// <summary>
/// A generic base exception that all WriterSharp exceptions inherit from.
/// </summary>
public class WriterSharpException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="WriterSharpException" /> class.
/// </summary>
public WriterSharpException() : base() { }
/// <summary>
/// Initializes a new instance of the <see cref="WriterSharpException" />
/// with a custom error message.
/// </summary>
/// <param name="message">The custom error message</param>
public WriterSharpException(string message) : base(message) { }
/// <summary>
/// Initializes a new instance of the <see cref="WriterSharpException" />
/// with a custom error message and a reference to the exception
/// that caused this error.
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public WriterSharpException(string? message, Exception? innerException) : base(message, innerException) { }
}
}