Clover.NET coverage report - Coverage

Coverage timestamp: Friday, May 20, 2005 9:17:00 PM

File Stats: LOC: 112   Methods: 5
NCLOC: 16 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Exceptions\IBatisNetException.cs - - 20.0 % 20.0 %
coverage coverage
1  
2   #region Apache Notice
3   /*****************************************************************************
4   * $Header: $
5   * $Revision: $
6   * $Date: $
7   *
8   * iBATIS.NET Data Mapper
9   * Copyright (C) 2004 - Gilles Bayon
10   *
11   *
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   *
16   * http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   *
24   ********************************************************************************/
25   #endregion
26  
27   using System;
28   using System.Runtime.Serialization;
29  
30   namespace IBatisNet.Common.Exceptions
31   {
32   /// <summary>
33   /// The DalException is thrown when an error in the Dal occurs.
34   /// </summary>
35   /// <remarks>
36   /// This is the base exception for all exceptions thrown in the framework.
37   /// </remarks>
38   [Serializable]
39   public class IBatisNetException : System.ApplicationException
40   {
41   /// <summary>
42   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.IBatisNetException"/> class.
43   /// </summary>
44   /// <remarks>
45   /// This constructor initializes the <para>Message</para> property of the new instance
46   /// to a system-supplied message that describes the error.
47   /// </remarks>
48 0 public IBatisNetException() : base("iBatis.NET framework caused an exception.") { }
49  
50   /// <summary>
51   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.IBatisNetException"/>
52   /// class with a reference to the inner exception that is the cause of this exception.
53   /// </summary>
54   /// <remarks>
55   /// This constructor initializes the Message property of the new instance
56   /// using the message parameter.
57   /// </remarks>
58   /// <param name="ex">
59   /// The exception that is the cause of the current exception.
60   /// If the innerException parameter is not a null reference (Nothing in Visual Basic),
61   /// the current exception is raised in a catch block that handles the inner exception.
62   /// </param>
63 0 public IBatisNetException(Exception ex) : base("iBatis.NET framework caused an exception.", ex) { }
64  
65   /// <summary>
66   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.IBatisNetException"/>
67   /// class with a specified error message.
68   /// </summary>
69   /// <remarks>
70   /// This constructor initializes the Message property of the new instance to
71   /// the Message property of the passed in exception.
72   /// </remarks>
73   /// <param name="message">The message that describes the error.</param>
74 3 public IBatisNetException( string message ) : base ( message ) { }
75  
76   /// <summary>
77   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.IBatisNetException"/>
78   /// class with a specified error message and a reference to the inner exception
79   /// that is the cause of this exception.
80   /// </summary>
81   /// <remarks>
82   /// An exception that is thrown as a direct result of a previous exception should include a reference to the previous
83   /// exception in the InnerException property.
84   /// The InnerException property returns the same value that is passed into the constructor, or a null reference
85   /// (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.
86   /// </remarks>
87   /// <param name="message">The message that describes the error.</param>
88   /// <param name="inner">The exception that caused the error</param>
89 0 public IBatisNetException( string message, Exception inner ) : base ( message, inner ) { }
90  
91  
92   /// <summary>
93   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.IBatisNetException"/>
94   /// class with serialized data.
95   /// </summary>
96   /// <remarks>
97   /// This constructor is called during deserialization to reconstitute the
98   /// exception object transmitted over a stream.
99   /// </remarks>
100   /// <param name="info">
101   /// The <see cref="System.Runtime.Serialization.SerializationInfo"/> that holds the serialized
102   /// object data about the exception being thrown.
103   /// </param>
104   /// <param name="context">
105   /// The <see cref="System.Runtime.Serialization.StreamingContext"/> that contains contextual
106   /// information about the source or destination.
107   /// </param>
108 0 protected IBatisNetException(SerializationInfo info, StreamingContext context) : base (info, context) {}
109  
110   }
111   }
112