NAME
POEx::HTTP::Server::Error - Object encapsulating an error
SYNOPSIS
use POEx::HTTP::Server;
POEx::HTTP::Server->spawn( handlers => {
on_error => 'poe:my-alias/error' );
# events of session my-alias:
sub error {
my( $heap, $ereq ) = @_[HEAP,ARG0,ARG1];
if( $err->op ) {
warn $err->op, " error [", $err->errnum, "] ", $err->errstr;
}
else {
warn $err->content;
}
}
DESCRIPTION
It is a sub-class of HTTP::Request.
METHODS
op
errnum
errstr
errstring
SEE ALSO
POEx::HTTP::Server, POEx::HTTP::Server::Request, HTTP::Request.
AUTHOR
Philip Gwyn, <gwyn -at- cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Philip Gwyn
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.