Clover.NET coverage report - Coverage

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

File Stats: LOC: 101   Methods: 5
NCLOC: 15 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Exceptions\ProbeException.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   /// Summary description for ProbeException.
34   /// </summary>
35   public class ProbeException : IBatisNetException
36   {
37   /// <summary>
38   /// Initializes a new instance of the <b>ProbeException</b> class.
39   /// </summary>
40   /// <remarks>
41   /// This constructor initializes the <para>Message</para> property of the new instance
42   /// to a system-supplied message that describes the error.
43   /// </remarks>
44 0 public ProbeException() : base("A foreign key conflict has occurred.") { }
45  
46   /// <summary>
47   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.ProbeException"/>
48   /// class with a reference to the inner exception that is the cause of this exception.
49   /// </summary>
50   /// <remarks>
51   /// This constructor initializes the Message property of the new instance to the Message property
52   /// of the passed in exception.
53   /// </remarks>
54   /// <param name="ex">
55   /// The exception that is the cause of the current exception.
56   /// If the innerException parameter is not a null reference (Nothing in Visual Basic),
57   /// the current exception is raised in a catch block that handles the inner exception.
58   /// </param>
59 0 public ProbeException(Exception ex) : base (ex.Message,ex) {}
60  
61   /// <summary>
62   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.ProbeException"/>
63   /// class with a specified error message.
64   /// </summary>
65   /// <remarks>
66   /// This constructor initializes the Message property of the new instance using
67   /// the message parameter.
68   /// </remarks>
69   /// <param name="message">The message that describes the error.</param>
70 1 public ProbeException( string message ) : base ( message ) { }
71  
72   /// <summary>
73   /// Initializes a new instance of the <see cref="IBatisNet.Common.Exceptions.ProbeException"/>
74   /// class with a specified error message and a reference to the inner exception that is the cause of this exception.
75   /// </summary>
76   /// <remarks>
77   /// An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property.
78   /// The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.
79   /// </remarks>
80   /// <param name="message">The message that describes the error.</param>
81   /// <param name="inner">The exception that caused the error</param>
82 0 public ProbeException( string message, Exception inner ) : base ( message, inner ) { }
83  
84   /// <summary>
85   /// Initializes a new instance of the Exception class with serialized data.
86   /// </summary>
87   /// <remarks>
88   /// This constructor is called during deserialization to reconstitute the exception
89   /// object transmitted over a stream.
90   /// </remarks>
91   /// <param name="info">
92   /// The <see cref="System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.
93   /// </param>
94   /// <param name="context">
95   /// The <see cref="System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.
96   /// </param>
97 0 protected ProbeException(SerializationInfo info, StreamingContext context) : base (info, context) {}
98  
99   }
100   }
101