Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19918/NHibernate/Type
Modified Files:
SerializationException.cs
Log Message:
Followed FxCops rules on creating custom exceptions and supporting
serialization. However, they still inherit from ApplicationException.
Index: SerializationException.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/SerializationException.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SerializationException.cs 31 Dec 2004 23:55:34 -0000 1.5
--- SerializationException.cs 14 Feb 2005 03:39:07 -0000 1.6
***************
*** 1,3 ****
--- 1,4 ----
using System;
+ using System.Runtime.Serialization;
namespace NHibernate.Type
***************
*** 10,20 ****
{
/// <summary>
! ///
/// </summary>
! /// <param name="message"></param>
! /// <param name="root"></param>
! public SerializationException( string message, Exception root ) : base( message, root )
{
}
}
! }
\ No newline at end of file
--- 11,56 ----
{
/// <summary>
! /// Initializes a new instance of the <see cref="SerializationException"/> class.
/// </summary>
! public SerializationException( ) : base( "The Property associated with a SerializableType threw an Exception during serialization or deserialization." )
! {
! }
!
! /// <summary>
! /// Initializes a new instance of the <see cref="SerializationException"/> class.
! /// </summary>
! /// <param name="message">The message that describes the error.</param>
! public SerializationException( string message ) : base( message )
! {
!
! }
!
! /// <summary>
! /// Initializes a new instance of the <see cref="SerializationException"/> class.
! /// </summary>
! /// <param name="message">The message that describes the error.</param>
! /// <param name="e">
! /// The exception that is the cause of the current exception. If the innerException parameter
! /// is not a null reference, the current exception is raised in a catch block that handles
! /// the inner exception.
! /// </param>
! public SerializationException( string message, Exception e ) : base( message, e )
! {
! }
!
! /// <summary>
! /// Initializes a new instance of the <see cref="SerializationException"/> class
! /// with serialized data.
! /// </summary>
! /// <param name="info">
! /// The <see cref="SerializationInfo"/> that holds the serialized object
! /// data about the exception being thrown.
! /// </param>
! /// <param name="context">
! /// The <see cref="StreamingContext"/> that contains contextual information about the source or destination.
! /// </param>
! protected SerializationException( SerializationInfo info, StreamingContext context ) : base( info, context )
{
}
}
! }
|