Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1843 Modified Files: QueryException.cs StaleObjectStateException.cs TransactionException.cs TransientObjectException.cs ValidationFailure.cs WrongClassException.cs Log Message: fix xml documentation and allow ReSharper to reformat Index: TransientObjectException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/TransientObjectException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TransientObjectException.cs 22 Nov 2004 03:50:03 -0000 1.3 --- TransientObjectException.cs 1 Jan 2005 03:35:39 -0000 1.4 *************** *** 1,5 **** using System; ! namespace NHibernate { /// <summary> --- 1,5 ---- using System; ! namespace NHibernate { /// <summary> *************** *** 8,14 **** /// </summary> [Serializable] ! public class TransientObjectException : HibernateException { ! public TransientObjectException(string message): base(message) { } } ! } --- 8,20 ---- /// </summary> [Serializable] ! public class TransientObjectException : HibernateException { ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! public TransientObjectException( string message ) : base( message ) ! { ! } } ! } \ No newline at end of file Index: StaleObjectStateException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/StaleObjectStateException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** StaleObjectStateException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- StaleObjectStateException.cs 1 Jan 2005 03:35:39 -0000 1.3 *************** *** 1,5 **** using System; ! namespace NHibernate { /// <summary> --- 1,6 ---- using System; + using log4net; ! namespace NHibernate { /// <summary> *************** *** 9,39 **** /// </summary> [Serializable] ! public class StaleObjectStateException : HibernateException { ! private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(StaleObjectStateException)); private System.Type persistentType; private object identifier; ! public StaleObjectStateException(System.Type persistentType, object identifier) : base("Row was updated or deleted by another transaction") { this.persistentType = persistentType; this.identifier = identifier; ! log4net.LogManager.GetLogger( typeof(StaleObjectStateException) ).Error("An operation failed due to stale data", this); } ! public System.Type PersistentType ! { get { return persistentType; } } ! public object Identifier { get { return identifier; } } ! public override string Message { get { return base.Message + " for " + persistentType.FullName + " instance with identifier: " + identifier; } } } ! } --- 10,48 ---- /// </summary> [Serializable] ! public class StaleObjectStateException : HibernateException { ! private static readonly ILog log = LogManager.GetLogger( typeof( StaleObjectStateException ) ); private System.Type persistentType; private object identifier; ! /// <summary> ! /// ! /// </summary> ! /// <param name="persistentType"></param> ! /// <param name="identifier"></param> ! public StaleObjectStateException( System.Type persistentType, object identifier ) : base( "Row was updated or deleted by another transaction" ) { this.persistentType = persistentType; this.identifier = identifier; ! LogManager.GetLogger( typeof( StaleObjectStateException ) ).Error( "An operation failed due to stale data", this ); } ! /// <summary></summary> ! public System.Type PersistentType ! { get { return persistentType; } } ! /// <summary></summary> ! public object Identifier { get { return identifier; } } ! /// <summary></summary> ! public override string Message { get { return base.Message + " for " + persistentType.FullName + " instance with identifier: " + identifier; } } } ! } \ No newline at end of file Index: WrongClassException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/WrongClassException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WrongClassException.cs 22 Nov 2004 03:50:03 -0000 1.3 --- WrongClassException.cs 1 Jan 2005 03:35:39 -0000 1.4 *************** *** 1,5 **** using System; ! namespace NHibernate { /// <summary> --- 1,5 ---- using System; ! namespace NHibernate { /// <summary> *************** *** 8,17 **** /// </summary> [Serializable] ! public class WrongClassException : HibernateException { private object identifier; private System.Type type; ! public WrongClassException(string message, object identifier, System.Type type) : base(message) { this.identifier = identifier; --- 8,23 ---- /// </summary> [Serializable] ! public class WrongClassException : HibernateException { private object identifier; private System.Type type; ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! /// <param name="identifier"></param> ! /// <param name="type"></param> ! public WrongClassException( string message, object identifier, System.Type type ) : base( message ) { this.identifier = identifier; *************** *** 19,41 **** } ! public object Identifier { get { return identifier; } } ! public System.Type Type { get { return type; } } ! public override string Message { ! get { return "Object with id: " + identifier + " was not of the specified sublcass: " + type.FullName ! + " (" + base.Message + ")" ; } } } ! } --- 25,51 ---- } ! /// <summary></summary> ! public object Identifier { get { return identifier; } } ! /// <summary></summary> ! public System.Type Type { get { return type; } } ! /// <summary></summary> ! public override string Message { ! get ! { return "Object with id: " + identifier + " was not of the specified sublcass: " + type.FullName ! + " (" + base.Message + ")"; } } } ! } \ No newline at end of file Index: TransactionException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/TransactionException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TransactionException.cs 22 Nov 2004 03:50:03 -0000 1.3 --- TransactionException.cs 1 Jan 2005 03:35:39 -0000 1.4 *************** *** 1,5 **** using System; ! namespace NHibernate { /// <summary> --- 1,5 ---- using System; ! namespace NHibernate { /// <summary> *************** *** 7,15 **** /// </summary> [Serializable] ! public class TransactionException : HibernateException { ! public TransactionException(string message, Exception root) : base(message, root) {} ! public TransactionException(string message) : base(message) {} } ! } --- 7,28 ---- /// </summary> [Serializable] ! public class TransactionException : HibernateException { ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! /// <param name="root"></param> ! public TransactionException( string message, Exception root ) : base( message, root ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! public TransactionException( string message ) : base( message ) ! { ! } } ! } \ No newline at end of file Index: QueryException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/QueryException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** QueryException.cs 22 Nov 2004 03:50:03 -0000 1.3 --- QueryException.cs 1 Jan 2005 03:35:39 -0000 1.4 *************** *** 1,5 **** using System; ! namespace NHibernate { /// <summary> --- 1,5 ---- using System; ! namespace NHibernate { /// <summary> *************** *** 7,21 **** /// </summary> [Serializable] ! public class QueryException : HibernateException { private string queryString; ! public QueryException(string message) : base(message) {} ! public QueryException(string message, Exception e) : base(message, e) {} ! public QueryException(Exception e) : base(e) {} ! public string QueryString { get { return queryString; } --- 7,41 ---- /// </summary> [Serializable] ! public class QueryException : HibernateException { private string queryString; ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! public QueryException( string message ) : base( message ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="message"></param> ! /// <param name="e"></param> ! public QueryException( string message, Exception e ) : base( message, e ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="e"></param> ! public QueryException( Exception e ) : base( e ) ! { ! } ! /// <summary></summary> ! public string QueryString { get { return queryString; } *************** *** 23,30 **** } ! public override string Message { get { return base.Message + " [" + queryString + "]"; } } } ! } --- 43,51 ---- } ! /// <summary></summary> ! public override string Message { get { return base.Message + " [" + queryString + "]"; } } } ! } \ No newline at end of file Index: ValidationFailure.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/ValidationFailure.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ValidationFailure.cs 21 Sep 2004 12:43:26 -0000 1.3 --- ValidationFailure.cs 1 Jan 2005 03:35:39 -0000 1.4 *************** *** 2,6 **** using System.Runtime.Serialization; ! namespace NHibernate { /// <summary> --- 2,6 ---- using System.Runtime.Serialization; ! namespace NHibernate { /// <summary> *************** *** 9,23 **** /// </summary> [Serializable] ! public class ValidationFailure : HibernateException { ! public ValidationFailure(string msg) : base(msg) {} ! public ValidationFailure(string msg, Exception e) : base(msg, e) {} ! public ValidationFailure(Exception e) : base("A validation failure occured", e) {} ! public ValidationFailure() : base("A validation failure occured") {} ! protected ValidationFailure(SerializationInfo info, StreamingContext context) : base(info, context) { } } ! } --- 9,52 ---- /// </summary> [Serializable] ! public class ValidationFailure : HibernateException { ! /// <summary> ! /// ! /// </summary> ! /// <param name="msg"></param> ! public ValidationFailure( string msg ) : base( msg ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="msg"></param> ! /// <param name="e"></param> ! public ValidationFailure( string msg, Exception e ) : base( msg, e ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="e"></param> ! public ValidationFailure( Exception e ) : base( "A validation failure occured", e ) ! { ! } ! /// <summary></summary> ! public ValidationFailure() : base( "A validation failure occured" ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="info"></param> ! /// <param name="context"></param> ! protected ValidationFailure( SerializationInfo info, StreamingContext context ) : base( info, context ) ! { ! } } ! } \ No newline at end of file |