1 package Koha::Exception;
7 description => "Something went wrong!"
13 my $msg = $self->description;
15 my $field_hash = $self->field_hash;
16 while ( my ( $field, $value ) = each %$field_hash ) {
17 push @fields, $field . " => " . $value;
20 sprintf "Exception '%s' thrown '%s'" . ( @fields ? " with %s" : "" ) . "\n",
21 ref($self), $msg, ( @fields ? join ', ', @fields : () );