Data::ObjectDriver::Errors(3pm)

Data::ObjectDriver::Errors3pm

Container class for common database error codes

Usage

    eval { $driver->insert($obj); };
    if ($@ && $driver->last_error() == Data::ObjectDriver::Errors->UNIQUE_CONSTRAINT) {
        ...

Overview

Data::ObjectDriver::Errors is a container class for error codes resulting from DBI database operations. Database drivers can map particular database servers' DBI errors to these constants with their "map_error_code" methods.

Defined error codes

•

"UNIQUE_CONSTRAINT"

The application issued an insert or update that would violate the uniqueness constraint on a particular column, such as attempting to save a duplicate value to an indexed key field.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

License

Data::ObjectDriver is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

From libdata-objectdriver-perl 0.25-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.