| Eidolon documentation | view source | Contained in the Eidolon distribution. |
Eidolon::Driver::DB::Exceptions - Eidolon database driver exceptions.
In error handler of your application (lib/Example/Error.pm) you could write:
if ($e eq "DriverError::DB::SQL")
{
print "You have an error in your SQL syntax!";
}
else
{
$e->rethrow();
}
The Eidolon::Driver::DB::Exceptions package creates database driver exceptions that are used by all database drivers.
Base database driver exception. All other database driver exceptions subclass it.
Database connection error. Thrown when driver cannot connect or login to database engine.
Database SQL execution error. Thrown in case of invalid SQL command.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
| Eidolon documentation | view source | Contained in the Eidolon distribution. |