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:

unknown_error

read_start_error

ssl_error

resolve_error

ai_address_family_not_supported

ai_temporary_failure

ai_bad_flags

ai_bad_hints

ai_request_canceled

ai_permanent_failure

ai_family_not_supported

ai_out_of_memory

ai_no_address

ai_unknown_node_or_service

ai_argument_buffer_overflow

ai_resolved_protocol_unknown

ai_service_not_available_for_socket_type

ai_socket_type_not_supported

invalid_unicode_character

not_on_network

transport_endpoint_shutdown

host_down

remote_io

REFERENCES

UniEvent::ResolveError

XS::ErrorCode

XS::STL::ErrorCode

XS::STL::ErrorCategory