Error::Hierarchy::Internal::DBI - DBI-related exception
version 1.103530
my $connect_string = '...'; my $dbuser = '...'; my $dbpass = '...'; my $dbh = DBI->connect($connect_string, $dbuser, $dbpass, { HandleError => Error::Hierarchy::Internal::DBI->handler });
This class is the main part of the DBI-related exceptions. If you set it as the error handler in a DBI-connect()> call, it will turn the simple string errors thrown by DBI (and the database) into more meaningful exceptions.
DBI-
Initializes a newly constructed exception object. It transmutes the exception, then calls emit_warning() on the object.
emit_warning()
Give subclasses a chance to turn generic DBI exceptions into something more specific for their database schema. This method is supposed to bless the exception into the desired package or create a new one and must return it; it is called in init().
init()
Warns via warn() unless the package global SkipWarning is set.
warn()
SkipWarning
Turns the DBI error into the appropriate Error::Hierarchy::Internal::DBI::* exception object.
Error::Hierarchy::Internal::DBI::*
This exception class inherits all properties of Error::Hierarchy::Internal::CustomMessage.
It has the following additional properties.
error
err
errstr
state
retval
See perlmodinstall for information and options on installing Perl modules.
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Error-Hierarchy.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Error-Hierarchy/.
The development version lives at http://github.com/hanekomu/Error-Hierarchy and may be cloned from git://github.com/hanekomu/Error-Hierarchy. Instead of sending patches, please fork this project using the standard git and github infrastructure.
Marcel Gruenauer <marcel@cpan.org>
This software is copyright (c) 2004 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Error::Hierarchy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Hierarchy
CPAN shell
perl -MCPAN -e shell install Error::Hierarchy
For more information on module installation, please visit the detailed CPAN module installation guide.