NAME
Net::Z3950::AsyncZ - Perl extension for the Net::Z3950::AsyncZ module
SYNOPSIS
use Net::Z3950::AsyncZ::ErrMsg;
my $err = Net::Z3950::AsyncZ::ErrMsg->new($error_number});
ABSTRACT
Net::Z3950::AsyncZ::ErrMsg
objects are created internally by Net::Z3950::AsyncZ
for keeping track of errors returned by each forked process.
DESCRIPTION
Net::Z3950::AsyncZ::ErrMsg
objects are created internally by Net::Z3950::AsyncZ for keeping track of errors returned by each forked process. This means that there may be an an ErrMsg
object for both cycle one and cycle two processes.
The user does not create these objects. They are made available by means of Net::Z3950::AsyncZ::getErrors()
, which returns a reference to an array of two ErrMsg
obects, representing possible errors from cycle one and cycle two processes.
A detailed account of error handling will be found in the documentation for Net::Z3950::AsyncZ
under the heading Errors
.
Object Methods
- isSystem
- sub isNetwork
- sub isTryAgain
- sub isSuccess
- sub isUnspecified
- sub isZ3950
- sub doRetry
- sub doAbort
These methods enable the user to determine the type of error which has been returned. They return true or false.
print "Network error\n" if $err->isNetwork();
See the Net::Z3950::AsyncZ
documentation for examples.
AUTHOR
Myron Turner <turnermm@shaw.ca> or <mturner@ms.umanitoba.ca>
COPYRIGHT AND LICENSE
Copyright 2003 by Myron Turner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.