From: Michael D. <mik...@us...> - 2005-02-14 03:17:15
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11213/NHibernate/Cache Modified Files: CacheException.cs Log Message: Followed FxCops rules on creating custom exceptions and supporting serialization. However, they still inherit from ApplicationException. Index: CacheException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cache/CacheException.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CacheException.cs 31 Dec 2004 15:24:29 -0000 1.5 --- CacheException.cs 14 Feb 2005 03:17:06 -0000 1.6 *************** *** 1,3 **** --- 1,4 ---- using System; + using System.Runtime.Serialization; namespace NHibernate.Cache *************** *** 10,16 **** { /// <summary> ! /// /// </summary> ! /// <param name="message"></param> public CacheException( string message ) : base( message ) { --- 11,24 ---- { /// <summary> ! /// Initializes a new instance of the <see cref="CacheException"/> class. /// </summary> ! public CacheException( ) : base( "There was an Exception in the Cache." ) ! { ! } ! ! /// <summary> ! /// Initializes a new instance of the <see cref="CacheException"/> class. ! /// </summary> ! /// <param name="message">The message that describes the error.</param> public CacheException( string message ) : base( message ) { *************** *** 18,25 **** /// <summary> ! /// /// </summary> ! /// <param name="e"></param> ! public CacheException( Exception e ) : base( e ) { } --- 26,65 ---- /// <summary> ! /// Initializes a new instance of the <see cref="CacheException"/> class. /// </summary> ! /// <param name="innerException"> ! /// 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 CacheException( Exception innerException ) : base( innerException ) ! { ! } ! ! /// <summary> ! /// Initializes a new instance of the <see cref="CacheException"/> class. ! /// </summary> ! /// <param name="message">The message that describes the error. </param> ! /// <param name="innerException"> ! /// 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 CacheException( string message, Exception innerException ) : base( message, innerException ) ! { ! } ! ! /// <summary> ! /// Initializes a new instance of the <see cref="CacheException"/> 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 CacheException( SerializationInfo info, StreamingContext context ) : base( info, context ) { } |