Clover.NET coverage report - Coverage for s2dao.net

Coverage timestamp: 2006年5月18日 15:09:15

File Stats: LOC: 158   Methods: 17
NCLOC: 118 Classes: 9
 
Source File Conditionals Statements Methods TOTAL
Seasar.Dao\Exceptions.cs - 25.0% 23.5% 24.2%
coverage coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
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