1Data::ObjectDriver::ErrUosresr(3Cpomn)tributed Perl DocuDmaetnat:a:tOibojnectDriver::Errors(3pm)
2
3
4

NAME

6       Data::ObjectDriver::Errors - container class for common database error
7       codes
8

SYNOPSIS

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

DESCRIPTION

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

DEFINED ERROR CODES

21       •   "UNIQUE_CONSTRAINT"
22
23           The application issued an insert or update that would violate the
24           uniqueness constraint on a particular column, such as attempting to
25           save a duplicate value to an indexed key field.
26

SEE ALSO

28       "Data::ObjectDriver::Driver::DBD::map_error_code"
29

LICENSE

31       Data::ObjectDriver is free software; you may redistribute it and/or
32       modify it under the same terms as Perl itself.
33
35       Except where otherwise noted, Data::ObjectDriver is Copyright 2005-2006
36       Six Apart, cpan@sixapart.com. All rights reserved.
37
38
39
40perl v5.34.0                      2022-01-21   Data::ObjectDriver::Errors(3pm)
Impressum