Lines 25-31
use Exception::Class (
Link Here
|
25 |
'Koha::Exceptions::Metadata::Invalid' => { |
25 |
'Koha::Exceptions::Metadata::Invalid' => { |
26 |
isa => 'Koha::Exceptions::Metadata', |
26 |
isa => 'Koha::Exceptions::Metadata', |
27 |
description => 'Invalid data', |
27 |
description => 'Invalid data', |
28 |
fields => ['id','format','schema', 'decoding_error'] |
28 |
fields => ['id', 'biblionumber', 'format', 'schema', 'decoding_error'] |
29 |
} |
29 |
} |
30 |
); |
30 |
); |
31 |
|
31 |
|
Lines 36-43
sub full_message {
Link Here
|
36 |
|
36 |
|
37 |
unless ($msg) { |
37 |
unless ($msg) { |
38 |
if ( $self->isa('Koha::Exceptions::Metadata::Invalid') ) { |
38 |
if ( $self->isa('Koha::Exceptions::Metadata::Invalid') ) { |
39 |
$msg = sprintf( "Invalid data, cannot decode object (id=%s, format=%s, schema=%s, decoding_error='%s')", |
39 |
$msg = sprintf( "Invalid data, cannot decode object (id=%s, biblionumber=%s, format=%s, schema=%s, decoding_error='%s')", |
40 |
$self->id, $self->format, $self->schema, $self->decoding_error ); |
40 |
$self->id, $self->biblionumber, $self->format, $self->schema, $self->decoding_error ); |
41 |
} |
41 |
} |
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
- |
|
|