Thrown when ISession.Load() selects a row with the given primary key (identifier value)
but the row's discriminator value specifies a different subclass from the one requested
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class WrongClassException _ Inherits HibernateException _ Implements ISerializable |
C# |
---|
[SerializableAttribute] public class WrongClassException : HibernateException, ISerializable |
Visual C++ |
---|
[SerializableAttribute] public ref class WrongClassException : public HibernateException, ISerializable |
JavaScript |
---|
NHibernate.WrongClassException = function(); Type.createClass( 'NHibernate.WrongClassException', NHibernate.HibernateException, ISerializable); |
Inheritance Hierarchy
System..::.Object
System..::.Exception
System..::.ApplicationException
NHibernate..::.HibernateException
NHibernate..::.WrongClassException
System..::.Exception
System..::.ApplicationException
NHibernate..::.HibernateException
NHibernate..::.WrongClassException