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

--- Comment #2 from Tomás Cohen Arazi <[email protected]> ---
Created attachment 110855
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110855&action=edit
Bug 26555: Add ->errors and ->add_error to Koha::Object

This patch adds a way to make Koha::Object-derived classes to carry
errors around. This targets non-fatal errors that need to be notified to
the caller, to avoid complex exception handling on the controllers when
it is not expected to be fatal.

To test:
1. Apply this patchset
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Object.t
=> SUCCESS: Tests pass!
3. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to