NAME
Protocol::Database::PostgreSQL::Error - represents a PostgreSQL error
DESCRIPTION
This inherits from Ryu::Exception to provide a wrapper for exceptions and notices raised by the server.
METHODS
code
The failing code.
file
Which PostgreSQL source file the error was raised from.
line
The line number in the PostgreSQL source file which raised this error.
message
The error message from the server.
position
The character offset in the input query.
routine
Which PostgreSQL processing routine raised this.
severity
Relative severity of the error, e.g. NOTICE or FATAL.
type
Look up the error information in tables extracted from PostgreSQL official documentation. Returns a string corresponding to the error code, or unknown
if it's not in the tables (or from a newer version than this module supports, currently 11.2).
INHERITED METHODS
AUTHOR
Tom Molesworth <TEAM@cpan.org>
LICENSE
Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself.