NAME

DBIx::Class::ParseError::Parser::Error - Structured error info

DESCRIPTION

Handy error object with info from parsed DB errors when using DBIx::Class.

These objects stringify to the contained error message.

ATTRIBUTES

message

The raw error string.

type

Error case key:

primary_key
foreign_key
unique_key
not_null
data_type
missing_column
missing_table

operation

DB operation issued (INSERT or UPDATE).

table

Table name.

source_name

Source moniker name.

column_data

Hashref of column names and values.

columns

Column(s) involved in error.

METHODS

rethrow

This method provides some syntactic sugar in order to re-throw exceptions.

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.