forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdapterException.cs
More file actions
43 lines (35 loc) · 1.09 KB
/
AdapterException.cs
File metadata and controls
43 lines (35 loc) · 1.09 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Simple.Data
{
using System.Security;
[Serializable]
public abstract class AdapterException : Exception
{
protected AdapterException(Type adapterType)
{
AdapterType = adapterType;
}
protected AdapterException(string message, Type adapterType) : base(message)
{
AdapterType = adapterType;
}
protected AdapterException(string message, Exception inner, Type adapterType) : base(message, inner)
{
AdapterType = adapterType;
}
protected AdapterException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
public Type AdapterType
{
get { return Data.Contains("AdapterType") ? Data["AdapterType"] as Type : null; }
private set { Data["AdapterType"] = value; }
}
}
}