This exception is thrown when an operation would break session-scoped identity. This occurs if the user tries to associate two different instances of the same class with a particular identifier, in the scope of a single ISession.

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class NonUniqueObjectException _
	Inherits HibernateException
C#
[SerializableAttribute]
public class NonUniqueObjectException : HibernateException
Visual C++
[SerializableAttribute]
public ref class NonUniqueObjectException : public HibernateException
JavaScript
NHibernate.NonUniqueObjectException = function();

Type.createClass(
	'NHibernate.NonUniqueObjectException',
	NHibernate.HibernateException);

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    System..::.ApplicationException
      NHibernate..::.HibernateException
        NHibernate..::.NonUniqueObjectException

See Also