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 Seasar.Framework.Exceptions;
|
21
|
|
|
22
|
|
namespace Seasar.Dao
|
23
|
|
{
|
24
|
|
public class DaoNotFoundRuntimeException : SRuntimeException
|
25
|
|
{
|
26
|
|
private Type targetType;
|
27
|
|
|
28
|
0
|
public DaoNotFoundRuntimeException(Type targetType)
|
29
|
|
: base("EDAO0008", new object[] { targetType.Name })
|
30
|
|
{
|
31
|
|
this.targetType = targetType;
|
32
|
|
}
|
33
|
|
|
34
|
0
|
public Type TargetType
|
35
|
|
{
|
36
|
|
get { return this.targetType; }
|
37
|
|
}
|
38
|
|
}
|
39
|
|
|
40
|
|
public class EndCommentNotFoundRuntimeException : SRuntimeException
|
41
|
|
{
|
42
|
1
|
public EndCommentNotFoundRuntimeException()
|
43
|
|
: base("EDAO0007")
|
44
|
|
{
|
45
|
|
}
|
46
|
|
}
|
47
|
|
|
48
|
|
public class IfConditionNotFoundRuntimeException : SRuntimeException
|
49
|
|
{
|
50
|
0
|
public IfConditionNotFoundRuntimeException()
|
51
|
|
: base("EDAO0004")
|
52
|
|
{
|
53
|
|
}
|
54
|
|
}
|
55
|
|
|
56
|
|
public class IllegalBoolExpressionRuntimeException : SRuntimeException
|
57
|
|
{
|
58
|
|
private string expression;
|
59
|
|
|
60
|
0
|
public IllegalBoolExpressionRuntimeException(string expression)
|
61
|
|
: base("EDAO0003", new object[] {expression})
|
62
|
|
{
|
63
|
|
this.expression = expression;
|
64
|
|
}
|
65
|
|
|
66
|
0
|
public string Expression
|
67
|
|
{
|
68
|
|
get { return this.expression; }
|
69
|
|
}
|
70
|
|
}
|
71
|
|
|
72
|
|
public class IllegalSignatureRuntimeException : SRuntimeException
|
73
|
|
{
|
74
|
|
private string signature;
|
75
|
|
|
76
|
0
|
public IllegalSignatureRuntimeException(string messageCode, string signature)
|
77
|
|
: base(messageCode, new object[] { signature })
|
78
|
|
{
|
79
|
|
this.signature = signature;
|
80
|
|
}
|
81
|
|
|
82
|
0
|
public string Signature
|
83
|
|
{
|
84
|
|
get { return this.signature; }
|
85
|
|
}
|
86
|
|
}
|
87
|
|
|
88
|
|
public class UpdateFailureRuntimeException : SRuntimeException
|
89
|
|
{
|
90
|
|
private object bean;
|
91
|
|
private int rows;
|
92
|
|
|
93
|
2
|
public UpdateFailureRuntimeException(object bean, int rows)
|
94
|
|
: base("EDAO0005", new object[] { bean.ToString(), rows.ToString() })
|
95
|
|
{
|
96
|
2
|
this.bean = bean;
|
97
|
2
|
this.rows = rows;
|
98
|
|
}
|
99
|
|
|
100
|
0
|
public object Bean
|
101
|
|
{
|
102
|
|
get { return this.bean; }
|
103
|
|
}
|
104
|
|
|
105
|
0
|
public int Rows
|
106
|
|
{
|
107
|
|
get { return this.rows; }
|
108
|
|
}
|
109
|
|
}
|
110
|
|
|
111
|
|
public class NotSingleRowUpdatedRuntimeException : UpdateFailureRuntimeException
|
112
|
|
{
|
113
|
2
|
public NotSingleRowUpdatedRuntimeException(object bean, int rows)
|
114
|
|
: base(bean, rows)
|
115
|
|
{
|
116
|
|
}
|
117
|
|
}
|
118
|
|
|
119
|
|
public class PrimaryKeyNotFoundRuntimeException : SRuntimeException
|
120
|
|
{
|
121
|
|
private Type targetType;
|
122
|
|
|
123
|
0
|
public PrimaryKeyNotFoundRuntimeException(Type targetType)
|
124
|
|
: base("EDAO0009", new object[] { targetType.Name })
|
125
|
|
{
|
126
|
|
this.targetType = targetType;
|
127
|
|
}
|
128
|
|
|
129
|
0
|
public Type TargetType
|
130
|
|
{
|
131
|
|
get { return this.targetType; }
|
132
|
|
}
|
133
|
|
}
|
134
|
|
|
135
|
|
public class TokenNotClosedRuntimeException : SRuntimeException
|
136
|
|
{
|
137
|
|
private string token;
|
138
|
|
private string sql;
|
139
|
|
|
140
|
2
|
public TokenNotClosedRuntimeException(string token, string sql)
|
141
|
|
: base("EDAO0002", new object[] { token, sql })
|
142
|
|
{
|
143
|
2
|
this.token = token;
|
144
|
2
|
this.sql = sql;
|
145
|
|
}
|
146
|
|
|
147
|
0
|
public string Token
|
148
|
|
{
|
149
|
|
get { return this.token; }
|
150
|
|
}
|
151
|
|
|
152
|
0
|
public string Sql
|
153
|
|
{
|
154
|
|
get { return this.sql; }
|
155
|
|
}
|
156
|
|
}
|
157
|
|
}
|
158
|
|
|