UniqueConstraintException constructor

const UniqueConstraintException(
  1. String message, {
  2. String? code = 'P2002',
  3. Object? originalError,
  4. Map<String, dynamic>? context,
  5. List<String>? fields,
  6. dynamic value,
  7. String? constraintName,
})

Implementation

const UniqueConstraintException(
  super.message, {
  super.code = 'P2002',
  super.originalError,
  super.context,
  this.fields,
  this.value,
  this.constraintName,
});