DuplicatedPrimaryKeyException

DuplicatedPrimaryKeyException is thrown when a data modification command violates a primary key or unique index constraint.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataAccessException

Constructors

DuplicatedPrimaryKeyException

Creates a new instance of DuplicatedPrimaryKeyException.

Signature:
public Void DuplicatedPrimaryKeyException(msg, src, inner)
Parameters
Name Type Summary
msg String Error message.
src String Source core reference.
inner Exception Origina esception

DuplicatedPrimaryKeyException

Creates a new instance of DuplicatedPrimaryKeyException.

Signature:
public Void DuplicatedPrimaryKeyException(cmd, src, inner)
Parameters
Name Type Summary
cmd IDbCommand Command executed that causes the error.
src String Source code reference.
inner Exception Original exception.

In this document