NAME
UniEvent::Error - UniEvent error constants
DESCRIPTION
This package contains all generic UniEvent error constants.
Also objects of class UniEvent::Error
can be thrown in case of critical malfunction.
SYNOPSIS
$tcp->connect($host, $port);
$tcp->connect_callback(sub {
my ($tcp, $err) = @_;
if ($err) {
if ($err == UE::Error::ssl_error) { ... }
elsif ($err == UE::Error::resolve_error) { ... }
...
}
});
CONSTANTS
ERROR CATEGORIES
These constants hold various error categories used by UniEvent, as XS::STL::ErrorCategory objects.
category
Generic unievent errors category. All possible errors for this category are listed in this package, see below.
system_category
An alias for XS::STL::ErrorCode::system_category
, a standard system error category. All possible errors for this category are listed in XS::STL::errc
package, see XS::STL::ErrorCode.
resolve_category
DNS resolver error category. All possible errors for this category are listed in UniEvent::ResolveError.
ssl_category
SSL and TLS error category (high-level errors). These are returned from SSL library.
openssl_category
Low level openssl library errors. These are returned from SSL library.
streamer_category
Streamer error category (UniEvent::Streamer). All possible errors for this category are listed in UniEvent::StreamerError.
GENERIC UNIEVENT ERRORS
These are possible errors for generic unievent category (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
METHODS
Methods of UniEvent::Error
objects which may be thrown in case of critical errors.
new($string)
new($error_code)
Constructs new Error object either from textual description or from XS::ErrorCode object.
what()
Returns human-readable description of the error
clone()
Clones the error