Benjamin Trott > Data-ObjectDriver-0.06 > Data::ObjectDriver::Errors

Download:
Data-ObjectDriver-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  2
View Bugs
Report a bug
Source  

NAME ^

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

SYNOPSIS ^

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

DESCRIPTION ^

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 ^

SEE ALSO ^

Data::ObjectDriver::Driver::DBD::map_error_code

LICENSE ^

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

AUTHOR & COPYRIGHT ^

Except where otherwise noted, Data::ObjectDriver is Copyright 2005-2006 Six Apart, cpan@sixapart.com. All rights reserved.