Skip to content

DuplicateKeyException ​

Namespace: MJCZone.DapperMatic.AspNetCore.Validation

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

The exception that is thrown when a duplicate key is detected.

Inheritance ​

Base Class: Exception

public

Contents ​

Constructors (3) | Methods (7) | Properties (8)

Constructors ​

DuplicateKeyException ​

Initializes a new instance of the DuplicateKeyException class.

csharp
DuplicateKeyException()

DuplicateKeyException ​

Initializes a new instance of the DuplicateKeyException class with a specified error message.

csharp
DuplicateKeyException(string message)

Parameters ​

  • message (string) - The error message that explains the reason for the exception.

DuplicateKeyException ​

Initializes a new instance of the DuplicateKeyException class with a specified error message and a reference to the inner exception.

csharp
DuplicateKeyException(string message, Exception innerException)

Parameters ​

  • message (string) - The error message that explains the reason for the exception.
  • innerException (Exception) - The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Methods ​

MethodSummary
GetBaseException
GetObjectData
ToString
GetType
GetType
Equals
GetHashCode

GetBaseException ​

csharp
GetBaseException()

GetObjectData ​

csharp
GetObjectData()

ToString ​

csharp
ToString()

GetType ​

csharp
GetType()

GetType ​

csharp
GetType()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

TargetSite ​

Type: object

Message ​

Type: object

Data ​

Type: object

InnerException ​

Type: object

Type: object

Source ​

Type: object

HResult ​

Type: object

StackTrace ​

Type: object