forked from minecraft-dotnet/Substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevelIOException.cs
More file actions
46 lines (42 loc) · 1.84 KB
/
Copy pathLevelIOException.cs
File metadata and controls
46 lines (42 loc) · 1.84 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
37
38
39
40
41
42
43
44
45
46
using System;
using System.Runtime.Serialization;
namespace Substrate
{
/// <summary>
/// The exception that is thrown when IO errors occur during level management operations.
/// </summary>
[Serializable]
public class LevelIOException : SubstrateException
{
/// <summary>
/// Initializes a new instance of the <see cref="LevelIOException"/> class.
/// </summary>
public LevelIOException ()
: base()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="LevelIOException"/> class with a custom error message.
/// </summary>
/// <param name="message">A custom error message.</param>
public LevelIOException (string message)
: base(message)
{ }
/// <summary>
/// Initializes a new instance of the <see cref="LevelIOException"/> class with a custom error message and a reference to
/// an InnerException representing the original cause of the exception.
/// </summary>
/// <param name="message">A custom error message.</param>
/// <param name="innerException">A reference to the original exception that caused the error.</param>
public LevelIOException (string message, Exception innerException)
: base(message, innerException)
{ }
/// <summary>
/// Initializes a new instance of the <see cref="LevelIOException"/> class with serialized data.
/// </summary>
/// <param name="info">The object that holds the serialized object data.</param>
/// <param name="context">The contextual information about the source or destination.</param>
protected LevelIOException (SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
}
}