GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATA::OBJECTDRIVER::ERRORS (3)

.ds Aq ’

NAME

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

CONTENTS

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

o 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.

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::OBJECTDRIVER::ERRORS (3) 2016-01-14

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.