debian man page for http::oai::error

Query: http::oai::error

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

HTTP::OAI::Error(3pm)					User Contributed Perl Documentation				     HTTP::OAI::Error(3pm)

NAME
HTTP::OAI::Error - Encapsulates OAI error codes
METHODS
$err = new HTTP::OAI::Error(code=>'badArgument',[message=>'An incorrect argument was supplied']) This constructor method returns a new HTTP::OAI::Error object. If no message is specified, and the code is a valid OAI error code, the appropriate message from the OAI protocol document is the default message. $code = $err->code([$code]) Returns and optionally sets the error name. $msg = $err->message([$msg]) Returns and optionally sets the error message. NOTE - noRecordsMatch noRecordsMatch, without additional errors, is not treated as an error code. If noRecordsMatch was returned by a repository the HTTP::OAI::Response object will have a verb 'error' and will contain the noRecordsMatch error, however is_success will return true. e.g. my $r = $ha->ListIdentifiers(metadataPrefix='oai_dc',from=>'3000-02-02'); if( $r->is_success ) { print "Successful "; } else { print "Failed "; } print $r->verb, " "; Will print "Successful" followed by "error". perl v5.12.4 2007-06-28 HTTP::OAI::Error(3pm)
Related Man Pages
http::oai::identify(3pm) - debian
http::oai::listidentifiers(3pm) - debian
http::oai::listrecords(3pm) - debian
http::oai::repository(3pm) - debian
http::oai::response(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Introduction
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph