Clover.NET coverage report - Coverage

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

File Stats: LOC: 111   Methods: 5
NCLOC: 17 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Exceptions\DataMapperException.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   using IBatisNet.Common.Exceptions;
31  
32   namespace IBatisNet.DataMapper.Exceptions
33   {
34   /// <summary>
35   /// The DataMapperException is thrown when an error in the SqlMapper component occurs.
36   /// </summary>
37   [Serializable]
38   public class DataMapperException : IBatisNetException
39   {
40   /// <summary>
41   /// Initializes a new instance of the <see cref="IBatisNet.DataMapper.Exceptions.DataMapperException"/> class.
42   /// </summary>
43   /// <remarks>
44   /// This constructor initializes the <para>Message</para> property of the new instance
45   /// to a system-supplied message that describes the error.
46   /// </remarks>
47 0 public DataMapperException(): base("iBatis.NET DataMappper component caused an exception.") { }
48  
49   /// <summary>
50   /// Initializes a new instance of the <see cref="IBatisNet.DataMapper.Exceptions.DataMapperException"/>
51   /// class with a reference to the inner exception that is the cause of this exception.
52   /// </summary>
53   /// <remarks>
54   /// This constructor initializes the Message property of the new instance
55   /// using the message parameter.
56   /// </remarks>
57   /// <param name="ex">
58   /// The exception that is the cause of the current exception.
59   /// If the innerException parameter is not a null reference (Nothing in Visual Basic),
60   /// the current exception is raised in a catch block that handles the inner exception.
61   /// </param>
62 0 public DataMapperException(Exception ex) : base("iBatis.NET DataMappper component caused an exception.", ex) { }
63  
64  
65   /// <summary>
66   /// Initializes a new instance of the <see cref="IBatisNet.DataMapper.Exceptions.DataMapperException"/>
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 2 public DataMapperException( string message ) : base ( message ) { }
75  
76   /// <summary>
77   /// Initializes a new instance of the <see cref="IBatisNet.DataMapper.Exceptions.DataMapperException"/>
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 DataMapperException( string message, Exception inner ) : base ( message, inner ) { }
90  
91   /// <summary>
92   /// Initializes a new instance of the <see cref="IBatisNet.DataMapper.Exceptions.DataMapperException"/>
93   /// class with serialized data.
94   /// </summary>
95   /// <remarks>
96   /// This constructor is called during deserialization to reconstitute the
97   /// exception object transmitted over a stream.
98   /// </remarks>
99   /// <param name="info">
100   /// The <see cref="System.Runtime.Serialization.SerializationInfo"/> that holds the serialized
101   /// object data about the exception being thrown.
102   /// </param>
103   /// <param name="context">
104   /// The <see cref="System.Runtime.Serialization.StreamingContext"/> that contains contextual
105   /// information about the source or destination.
106   /// </param>
107 0 protected DataMapperException(SerializationInfo info, StreamingContext context) : base (info, context) {}
108  
109   }
110   }
111