1
|
|
#region Copyright
|
2
|
|
|
3
|
|
|
4
|
|
|
5
|
|
|
6
|
|
|
7
|
|
|
8
|
|
|
9
|
|
|
10
|
|
|
11
|
|
|
12
|
|
|
13
|
|
|
14
|
|
|
15
|
|
|
16
|
|
|
17
|
|
#endregion
|
18
|
|
|
19
|
|
using System;
|
20
|
|
using System.Runtime.Serialization;
|
21
|
|
using Seasar.Framework.Exceptions;
|
22
|
|
|
23
|
|
namespace Seasar.Framework.Beans
|
24
|
|
{
|
25
|
|
|
26
|
|
|
27
|
|
|
28
|
|
[Serializable]
|
29
|
|
public class IllegalPropertyRuntimeException : SRuntimeException
|
30
|
|
{
|
31
|
|
private Type componentType_;
|
32
|
|
private string propertyName_;
|
33
|
|
|
34
|
1
|
public IllegalPropertyRuntimeException(
|
35
|
|
Type componentType, string propertyName,Exception cause)
|
36
|
|
: base("ESSR0059",new object[] {componentType.FullName,propertyName,cause},
|
37
|
|
cause)
|
38
|
|
{
|
39
|
1
|
componentType_ = componentType;
|
40
|
1
|
propertyName_ = propertyName;
|
41
|
|
}
|
42
|
|
|
43
|
0
|
public IllegalPropertyRuntimeException(SerializationInfo info, StreamingContext context)
|
44
|
|
: base( info, context )
|
45
|
|
{
|
46
|
|
|
47
|
|
this.componentType_ = info.GetValue("componentType_", typeof(Type)) as Type;
|
48
|
|
this.propertyName_ = info.GetString("propertyName_");
|
49
|
|
}
|
50
|
|
|
51
|
0
|
public override void GetObjectData( SerializationInfo info,
|
52
|
|
StreamingContext context )
|
53
|
|
{
|
54
|
|
info.AddValue("componentType_", this.componentType_, typeof(Type));
|
55
|
|
info.AddValue("propertyName_", this.propertyName_, typeof(string));
|
56
|
|
|
57
|
|
base.GetObjectData(info, context);
|
58
|
|
}
|
59
|
|
|
60
|
0
|
public Type ComponentType
|
61
|
|
{
|
62
|
|
get { return componentType_; }
|
63
|
|
}
|
64
|
|
|
65
|
0
|
public string PropertyName
|
66
|
|
{
|
67
|
|
get { return propertyName_; }
|
68
|
|
}
|
69
|
|
}
|
70
|
|
}
|
71
|
|
|