Initializes a new instance of the PropertyAccessException class.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	innerException As Exception, _
	message As String, _
	wasSetter As Boolean, _
	persistentType As Type, _
	propertyName As String _
)
C#
public PropertyAccessException(
	Exception innerException,
	string message,
	bool wasSetter,
	Type persistentType,
	string propertyName
)
Visual C++
public:
PropertyAccessException(
	Exception^ innerException, 
	String^ message, 
	bool wasSetter, 
	Type^ persistentType, 
	String^ propertyName
)
JavaScript
NHibernate.PropertyAccessException = function(innerException, message, wasSetter, persistentType, propertyName);

Parameters

innerException
Type: System..::.Exception
The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.
message
Type: System..::.String
The message that describes the error.
wasSetter
Type: System..::.Boolean
A Boolean indicating if this was a "setter" operation.
persistentType
Type: System..::.Type
The Type that NHibernate was trying find the Property or Field in.
propertyName
Type: System..::.String
The mapped property name that was trying to be accessed.

See Also