forked from Dual-Iron/NetEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleLoadException.cs
More file actions
22 lines (21 loc) · 902 Bytes
/
ModuleLoadException.cs
File metadata and controls
22 lines (21 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
namespace NetEasy
{
/// <summary>Thrown during loading an invalid <see cref="Module"/>.</summary>
[Serializable]
public class ModuleLoadException : Exception
{
/// <inheritdoc/>
public ModuleLoadException() : base("An error occurred while loading.") { }
/// <inheritdoc/>
public ModuleLoadException(string message) : base(message) { }
/// <inheritdoc/>
public ModuleLoadException(string message, Type type) : base(message + " (offending type: " + type.FullName + ")") { }
/// <inheritdoc/>
public ModuleLoadException(string message, Exception inner) : base(message, inner) { }
/// <inheritdoc/>
protected ModuleLoadException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}