PICA::Error - Information about malformed or invalid PICA data
Instances of PICA::Error provide information about malformed PICA data (syntax errors such as impossible field tags and subfield codes) or violation of an Avram Schema (more semantic errors such as wrong use of subfields). This package should not be used directly, see PICA::Schema instead.
Tag of the invalid field.
Occurrence of the invalid field (if it has an occurrence).
Set if the field was required but missing.
Set if the non-repeatable field was repeated.
Set if the field is valid but deprecated.
Set to a hash reference that maps invalid subfield codes to subfield errrors.
human-readable error message, deriveable from the rest of the error.
Subfields errors are given as hash references with this keys:
Subfield code of the invalid subfield.
Set if the subfield was required but missing.
Set if the non-repeatable subfield was repeated.
Set to the expected order value if subfield occurred in wrong order.
The malformed subfield value if it did not match a pattern or positions.
Pattern which the subfield value did not match.
The position if value did not match positions or codes.
Returns the human readable error message. This is also returned when the error instance is used in string context.
To install PICA::Data, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PICA::Data
CPAN shell
perl -MCPAN -e shell install PICA::Data
For more information on module installation, please visit the detailed CPAN module installation guide.