The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::ParseError::Parser - Parser base role

DESCRIPTION

The core logic of parsing DB errors for different DBMS, which specific classes could do its interface and extend functionality where appropriate.

INTERFACE

type_regex

It's the only method required to be implemented by the consumer of the parser role, returning a hashref with error types as keys and regex as values.

parse_type

Provides default implementation for parsing type out from error strings.

parse_general_info

Provides default implementation for parsing general info (table name, operation, column info, etc) out from error strings.

process

Main handler, base logic, invokes the other two above and returns a DBIx::Class::ParseError::Error object.

AUTHOR

wreis - Wallace reis <wreis@cpan.org>

COPYRIGHT

Copyright (c) the "AUTHOR" and "CONTRIBUTORS" as listed above.

LICENSE

This library is free software and may be distributed under the same terms as perl itself.