|
NAMEHTTP::OAI::Error - Encapsulates OAI error codes METHODS
NOTE - noRecordsMatchnoRecordsMatch, 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\n";
} else {
print "Failed\n";
}
print $r->verb, "\n";
Will print "Successful" followed by "error".
|