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)NAMEHTTP::OAI::Error - Encapsulates OAI error codesMETHODS$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::message(3) - redhat |
http::oai::harvester(3pm) - debian |
http::oai::listidentifiers(3pm) - debian |
http::oai::record(3pm) - debian |
plack::middleware::httpexceptions(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
awk or sed - Convert 2 lines to 1 line |
How can I do this in VI editor? |
Detecting unused variables... |
A (ksh) Library For and From UNIX.com |