[Koha-bugs] [Bug 29857] We must stringify our exceptions correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 9 13:18:54 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29857

--- Comment #28 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #27)
> (In reply to Jonathan Druart from comment #26)
> > (In reply to Marcel de Rooy from comment #19)
> > > (In reply to Jonathan Druart from comment #0)
> > > > We must have a generic full_message method in the Koha::Exceptions base
> > > > class to display all the info we have about the exception.
> > > > The current state is bad as we are displaying the "description" of the
> > > > exception but it does not contain useful information.
> > > 
> > > Exception 'Koha::Exception::TestMR' thrown 'Something went wrong!' with
> > > status => x, type => HASH(0x5653eb753278)
> > > 
> > > How useful is HASH(0x5653eb753278) ?
> > 
> > We should call Dumper if it's a struct.
> 
> Marcel, did you find an example in the code or it's theoretical?

I do not have a real example. So I am not sure about that. But it isn't far
fetched if we are starting to use this more. Dumper could do it indeed.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list