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 ComponentNotFoundRuntimeException : SRuntimeException
|
30
|
|
{
|
31
|
|
private object componentKey_;
|
32
|
|
|
33
|
3
|
public ComponentNotFoundRuntimeException(object componentKey)
|
34
|
|
: base("ESSR0046",new object[] { componentKey})
|
35
|
|
{
|
36
|
3
|
componentKey_ = componentKey;
|
37
|
|
}
|
38
|
|
|
39
|
0
|
public ComponentNotFoundRuntimeException(SerializationInfo info, StreamingContext context)
|
40
|
|
: base( info, context )
|
41
|
|
{
|
42
|
|
this.componentKey_ = info.GetValue("componentKey_",typeof(object));
|
43
|
|
}
|
44
|
|
|
45
|
0
|
public override void GetObjectData( SerializationInfo info,
|
46
|
|
StreamingContext context )
|
47
|
|
{
|
48
|
|
info.AddValue("componentKey_", this.componentKey_, typeof(object));
|
49
|
|
|
50
|
|
base.GetObjectData(info, context);
|
51
|
|
}
|
52
|
|
|
53
|
0
|
public object ComponentKey
|
54
|
|
{
|
55
|
|
get { return componentKey_; }
|
56
|
|
}
|
57
|
|
}
|
58
|
|
}
|
59
|
|
|