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.Container
|
24
|
|
{
|
25
|
|
|
26
|
|
|
27
|
|
|
28
|
|
[Serializable]
|
29
|
|
public class IllegalMethodRuntimeException : SRuntimeException
|
30
|
|
{
|
31
|
|
private Type componentType_;
|
32
|
|
private string methodName_;
|
33
|
|
|
34
|
0
|
public IllegalMethodRuntimeException(
|
35
|
|
Type componentType,string methodName,Exception cause)
|
36
|
|
: base("ESSR0060", new object[] { componentType.FullName, methodName, cause }, cause)
|
37
|
|
{
|
38
|
|
componentType_ = componentType;
|
39
|
|
methodName_ = methodName;
|
40
|
|
}
|
41
|
|
|
42
|
0
|
public IllegalMethodRuntimeException(SerializationInfo info, StreamingContext context)
|
43
|
|
: base( info, context )
|
44
|
|
{
|
45
|
|
this.componentType_ = info.GetValue("componentType_", typeof(Type)) as Type;
|
46
|
|
this.methodName_ = info.GetString("methodName_");
|
47
|
|
}
|
48
|
|
|
49
|
0
|
public override void GetObjectData( SerializationInfo info,
|
50
|
|
StreamingContext context )
|
51
|
|
{
|
52
|
|
info.AddValue("componentType_", this.componentType_, typeof(Type));
|
53
|
|
info.AddValue("methodName_", this.methodName_, typeof(String));
|
54
|
|
|
55
|
|
base.GetObjectData(info, context);
|
56
|
|
}
|
57
|
|
|
58
|
0
|
public Type ComponentType
|
59
|
|
{
|
60
|
|
get { return componentType_; }
|
61
|
|
}
|
62
|
|
|
63
|
0
|
public string MethodName
|
64
|
|
{
|
65
|
|
get { return methodName_; }
|
66
|
|
}
|
67
|
|
}
|
68
|
|
}
|
69
|
|
|