forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnresolvableObjectException.cs
More file actions
46 lines (39 loc) · 1.23 KB
/
UnresolvableObjectException.cs
File metadata and controls
46 lines (39 loc) · 1.23 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.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Simple.Data
{
using System.Security;
[Serializable]
public sealed class UnresolvableObjectException : Exception
{
public UnresolvableObjectException()
{
}
public UnresolvableObjectException(string objectName)
{
ObjectName = objectName;
}
public UnresolvableObjectException(string objectName, string message) : base(message)
{
ObjectName = objectName;
}
public UnresolvableObjectException(string objectName, string message, Exception inner) : base(message, inner)
{
ObjectName = objectName;
}
private UnresolvableObjectException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
ObjectName = info.GetString("ObjectName");
}
public string ObjectName
{
get { return Data.Contains("ObjectName") ? Data["ObjectName"].ToString() : null; }
private set { Data["ObjectName"] = value; }
}
}
}