Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27947 Modified Files: ADOException.cs AssertionFailure.cs HibernateException.cs InstantiationException.cs LazyInitializationException.cs MappingException.cs ObjectDeletedException.cs ObjectNotFoundException.cs PersistentObjectException.cs PropertyAccessException.cs PropertyNotFoundException.cs QueryException.cs TransactionException.cs TransientObjectException.cs WrongClassException.cs Log Message: minor fixes for FxCop rules Index: ObjectDeletedException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/ObjectDeletedException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ObjectDeletedException.cs 21 Sep 2004 12:43:26 -0000 1.3 --- ObjectDeletedException.cs 22 Nov 2004 03:50:03 -0000 1.4 *************** *** 12,16 **** private object identifier; ! public ObjectDeletedException(string msg, object identifier) : base(msg) { this.identifier = identifier; --- 12,16 ---- private object identifier; ! public ObjectDeletedException(string message, object identifier) : base(message) { this.identifier = identifier; *************** *** 27,33 **** } ! public ObjectDeletedException(string msg, Exception root) : this(msg, root.Message) {} ! public ObjectDeletedException(string msg) : this(msg, msg) {} public ObjectDeletedException(Exception root) : this(root.Message, root.Message) {} --- 27,33 ---- } ! public ObjectDeletedException(string message, Exception root) : this(message, root.Message) {} ! public ObjectDeletedException(string message) : this(message, message) {} public ObjectDeletedException(Exception root) : this(root.Message, root.Message) {} Index: PropertyAccessException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/PropertyAccessException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertyAccessException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- PropertyAccessException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 13,17 **** private bool wasSetter; ! public PropertyAccessException(Exception root, string s, bool wasSetter, System.Type persistentType, string propertyName) : base(s, root) { this.persistentType = persistentType; --- 13,17 ---- private bool wasSetter; ! public PropertyAccessException(Exception root, string message, bool wasSetter, System.Type persistentType, string propertyName) : base(message, root) { this.persistentType = persistentType; Index: PersistentObjectException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/PersistentObjectException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PersistentObjectException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- PersistentObjectException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 10,14 **** public class PersistentObjectException : HibernateException { ! public PersistentObjectException(string s) : base(s) {} } } --- 10,14 ---- public class PersistentObjectException : HibernateException { ! public PersistentObjectException(string message) : base(message) {} } } Index: QueryException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/QueryException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** QueryException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- QueryException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 11,17 **** private string queryString; ! public QueryException(string msg) : base(msg) {} ! public QueryException(string msg, Exception e) : base(msg, e) {} public QueryException(Exception e) : base(e) {} --- 11,17 ---- private string queryString; ! public QueryException(string message) : base(message) {} ! public QueryException(string message, Exception e) : base(message, e) {} public QueryException(Exception e) : base(e) {} Index: TransactionException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/TransactionException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TransactionException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- TransactionException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 9,15 **** public class TransactionException : HibernateException { ! public TransactionException(string msg, Exception root) : base(msg, root) {} ! public TransactionException(string msg) : base(msg) {} } } --- 9,15 ---- public class TransactionException : HibernateException { ! public TransactionException(string message, Exception root) : base(message, root) {} ! public TransactionException(string message) : base(message) {} } } Index: ObjectNotFoundException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/ObjectNotFoundException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ObjectNotFoundException.cs 21 Sep 2004 12:43:26 -0000 1.3 --- ObjectNotFoundException.cs 22 Nov 2004 03:50:03 -0000 1.4 *************** *** 14,18 **** private System.Type type; ! public ObjectNotFoundException(string msg, object identifier, System.Type type) : base(msg) { this.identifier = identifier; --- 14,18 ---- private System.Type type; ! public ObjectNotFoundException(string message, object identifier, System.Type type) : base(message) { this.identifier = identifier; *************** *** 34,40 **** get { return type; } } ! public ObjectNotFoundException(string msg, Exception root) : this(msg, root.Message, typeof(ObjectNotFoundException)) {} ! public ObjectNotFoundException(string msg) : this(msg, msg, typeof(ObjectNotFoundException)) {} public ObjectNotFoundException(Exception root) : this(root.Message, root.Message, typeof(ObjectNotFoundException)) {} --- 34,40 ---- get { return type; } } ! public ObjectNotFoundException(string message, Exception root) : this(message, root.Message, typeof(ObjectNotFoundException)) {} ! public ObjectNotFoundException(string message) : this(message, message, typeof(ObjectNotFoundException)) {} public ObjectNotFoundException(Exception root) : this(root.Message, root.Message, typeof(ObjectNotFoundException)) {} Index: MappingException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/MappingException.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MappingException.cs 21 Sep 2004 12:43:26 -0000 1.4 --- MappingException.cs 22 Nov 2004 03:50:03 -0000 1.5 *************** *** 11,19 **** public class MappingException : HibernateException { ! public MappingException(string msg, Exception root) : base(msg, root) {} public MappingException(Exception root) : base(root) { } ! public MappingException(string msg) : base(msg) {} public MappingException() : base() {} --- 11,19 ---- public class MappingException : HibernateException { ! public MappingException(string message, Exception root) : base(message, root) {} public MappingException(Exception root) : base(root) { } ! public MappingException(string message) : base(message) {} public MappingException() : base() {} Index: AssertionFailure.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/AssertionFailure.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AssertionFailure.cs 21 Sep 2004 12:43:26 -0000 1.4 --- AssertionFailure.cs 22 Nov 2004 03:50:03 -0000 1.5 *************** *** 15,24 **** } ! public AssertionFailure(string s) : base(s) { log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", this); } ! public AssertionFailure(string s, Exception e) : base(s, e) { log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", e); --- 15,24 ---- } ! public AssertionFailure(string message) : base(message) { log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", this); } ! public AssertionFailure(string message, Exception e) : base(message, e) { log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", e); Index: HibernateException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/HibernateException.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** HibernateException.cs 20 Sep 2004 17:49:25 -0000 1.5 --- HibernateException.cs 22 Nov 2004 03:50:03 -0000 1.6 *************** *** 16,22 **** public HibernateException(Exception e) : base(String.Empty, e) { } ! public HibernateException(string str, Exception e) : base(str, e) { } ! public HibernateException(string str) : base(str) { } protected HibernateException(SerializationInfo info, StreamingContext context) : base(info, context) { } --- 16,22 ---- public HibernateException(Exception e) : base(String.Empty, e) { } ! public HibernateException(string message, Exception e) : base(message, e) { } ! public HibernateException(string message) : base(message) { } protected HibernateException(SerializationInfo info, StreamingContext context) : base(info, context) { } Index: TransientObjectException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/TransientObjectException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TransientObjectException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- TransientObjectException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 10,14 **** public class TransientObjectException : HibernateException { ! public TransientObjectException(string msg): base(msg) { } } } --- 10,14 ---- public class TransientObjectException : HibernateException { ! public TransientObjectException(string message): base(message) { } } } Index: PropertyNotFoundException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/PropertyNotFoundException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertyNotFoundException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- PropertyNotFoundException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 9,15 **** public class PropertyNotFoundException : MappingException { ! public PropertyNotFoundException(string msg, Exception root) : base(msg, root) {} public PropertyNotFoundException(Exception root) : base(root) {} ! public PropertyNotFoundException(string msg) : base(msg) {} } } --- 9,15 ---- public class PropertyNotFoundException : MappingException { ! public PropertyNotFoundException(string message, Exception root) : base(message, root) {} public PropertyNotFoundException(Exception root) : base(root) {} ! public PropertyNotFoundException(string message) : base(message) {} } } Index: WrongClassException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/WrongClassException.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WrongClassException.cs 13 Sep 2004 05:37:37 -0000 1.2 --- WrongClassException.cs 22 Nov 2004 03:50:03 -0000 1.3 *************** *** 13,17 **** private System.Type type; ! public WrongClassException(string msg, object identifier, System.Type type) : base(msg) { this.identifier = identifier; --- 13,17 ---- private System.Type type; ! public WrongClassException(string message, object identifier, System.Type type) : base(message) { this.identifier = identifier; Index: ADOException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/ADOException.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ADOException.cs 21 Sep 2004 12:43:26 -0000 1.6 --- ADOException.cs 22 Nov 2004 03:50:03 -0000 1.7 *************** *** 15,26 **** public ADOException() : this("DataException occured", new InvalidOperationException("Invalid Operation")) { } ! public ADOException(string str) : this(str, new InvalidOperationException("Invalid Operation")) { } public ADOException(DataException root) : this("DataException occurred", root) { } ! public ADOException(string str, Exception root) : base(str, root) { sqle = root; ! log4net.LogManager.GetLogger( typeof(ADOException) ).Error(str, root); } --- 15,26 ---- public ADOException() : this("DataException occured", new InvalidOperationException("Invalid Operation")) { } ! public ADOException(string message) : this(message, new InvalidOperationException("Invalid Operation")) { } public ADOException(DataException root) : this("DataException occurred", root) { } ! public ADOException(string message, Exception root) : base(message, root) { sqle = root; ! log4net.LogManager.GetLogger( typeof(ADOException) ).Error(message, root); } Index: LazyInitializationException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/LazyInitializationException.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** LazyInitializationException.cs 21 Sep 2004 12:43:26 -0000 1.4 --- LazyInitializationException.cs 22 Nov 2004 03:50:03 -0000 1.5 *************** *** 13,22 **** public LazyInitializationException(Exception root) : this(root.Message) {} ! public LazyInitializationException(string msg) : base(msg) { ! log4net.LogManager.GetLogger( typeof(LazyInitializationException) ).Error(msg, this); } ! public LazyInitializationException(string msg, Exception root) : this(msg + " " + root.Message) {} public LazyInitializationException() : this("LazyInitalizationException") {} --- 13,22 ---- public LazyInitializationException(Exception root) : this(root.Message) {} ! public LazyInitializationException(string message) : base(message) { ! log4net.LogManager.GetLogger( typeof(LazyInitializationException) ).Error(message, this); } ! public LazyInitializationException(string message, Exception root) : this(message + " " + root.Message) {} public LazyInitializationException() : this("LazyInitalizationException") {} Index: InstantiationException.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/InstantiationException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** InstantiationException.cs 21 Sep 2004 12:43:26 -0000 1.3 --- InstantiationException.cs 22 Nov 2004 03:50:03 -0000 1.4 *************** *** 12,16 **** private System.Type type; ! public InstantiationException(string s, System.Type type, Exception root) : base(s, root) { this.type = type; --- 12,17 ---- private System.Type type; ! public InstantiationException(string message, System.Type type, Exception root) ! : base(message, root) { this.type = type; *************** *** 27,33 **** } ! public InstantiationException(string s, Exception root) : this(s, typeof(InstantiationException), root) {} ! public InstantiationException(string s) : this(s, typeof(InstantiationException), new InvalidOperationException("Invalid Operation")) {} public InstantiationException() : this("Exception occured", typeof(InstantiationException), new InvalidOperationException("Invalid Operation")) {} --- 28,34 ---- } ! public InstantiationException(string message, Exception root) : this(message, typeof(InstantiationException), root) {} ! public InstantiationException(string message) : this(message, typeof(InstantiationException), new InvalidOperationException("Invalid Operation")) {} public InstantiationException() : this("Exception occured", typeof(InstantiationException), new InvalidOperationException("Invalid Operation")) {} |