NAME
UniEvent::Error - Perl bindings for UniEvent and system errors.
DESCRIPTION
The package allows to create and inspect errors, created in UnieEvent.
SYNOPSIS
my $e = UniEvent::Error->new("message");
say "got error: ", $e->what, "\n";
my $c = $e->clone;
METHODS
new($string)
new($error_code)
Constructs new Error object either from textual description or prepared XS::ErrorCode.
what()
Returns human-readable description of the error
clone()
Clones the error
CONSTANTS
There is a list of predefined error categories:
system_category
An alias for standard syster error category
category
Own UniEvent errors
resolve_category
DNS resolver error category
ssl_category
SSL and TLS error category (high-level errors)
openssl_category
Low level openssl library errors.
Predefined list of error codes of the own UniEvent error category: