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.Factory
|
24
|
|
{
|
25
|
|
[Serializable]
|
26
|
|
public class ClassNotFoundRuntimeException : SRuntimeException
|
27
|
|
{
|
28
|
|
private string className;
|
29
|
|
|
30
|
0
|
public ClassNotFoundRuntimeException(string className)
|
31
|
|
: base("ESSR0044",new object[] {" \"" + className + "\""})
|
32
|
|
{
|
33
|
|
this.className = className;
|
34
|
|
}
|
35
|
|
|
36
|
0
|
public ClassNotFoundRuntimeException(SerializationInfo info, StreamingContext context)
|
37
|
|
: base( info, context )
|
38
|
|
{
|
39
|
|
this.className = info.GetString("className");
|
40
|
|
}
|
41
|
|
|
42
|
0
|
public override void GetObjectData( SerializationInfo info,
|
43
|
|
StreamingContext context )
|
44
|
|
{
|
45
|
|
info.AddValue("methodName_", this.className, typeof(String));
|
46
|
|
|
47
|
|
base.GetObjectData(info, context);
|
48
|
|
}
|
49
|
|
|
50
|
0
|
public string ClassName
|
51
|
|
{
|
52
|
|
get { return className; }
|
53
|
|
}
|
54
|
|
}
|
55
|
|
}
|
56
|
|
|