Initializes a new instance of the ConstraintViolationException class

Namespace: NHibernate.Exceptions
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public ConstraintViolationException(
	string message,
	Exception innerException,
	string sql,
	string constraintName
)
Visual Basic
Public Sub New ( _
	message As String, _
	innerException As Exception, _
	sql As String, _
	constraintName As String _
)
Visual C++
public:
ConstraintViolationException(
	String^ message, 
	Exception^ innerException, 
	String^ sql, 
	String^ constraintName
)

Parameters

message
Type: System..::..String

[Missing <param name="message"/> documentation for "M:NHibernate.Exceptions.ConstraintViolationException.#ctor(System.String,System.Exception,System.String,System.String)"]

innerException
Type: System..::..Exception

[Missing <param name="innerException"/> documentation for "M:NHibernate.Exceptions.ConstraintViolationException.#ctor(System.String,System.Exception,System.String,System.String)"]

sql
Type: System..::..String

[Missing <param name="sql"/> documentation for "M:NHibernate.Exceptions.ConstraintViolationException.#ctor(System.String,System.Exception,System.String,System.String)"]

constraintName
Type: System..::..String

[Missing <param name="constraintName"/> documentation for "M:NHibernate.Exceptions.ConstraintViolationException.#ctor(System.String,System.Exception,System.String,System.String)"]

See Also