Initializes a new instance of the WrongClassException class.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	message As String, _
	identifier As Object, _
	type As Type _
)
C#
public WrongClassException(
	string message,
	Object identifier,
	Type type
)
Visual C++
public:
WrongClassException(
	String^ message, 
	Object^ identifier, 
	Type^ type
)
JavaScript
NHibernate.WrongClassException = function(message, identifier, type);

Parameters

message
Type: System..::.String
The message that describes the error.
identifier
Type: System..::.Object
The identifier of the object that was being loaded.
type
Type: System..::.Type
The Type that NHibernate was told to load.

See Also