[Koha-bugs] [Bug 27833] Koha::Exceptions::Patron::Attribute::* should have parameters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 11:42:12 CET 2021


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

--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 117676
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117676&action=edit
Bug 27833: (follow-up) Add InvalidType exception

Working on bug 27857 showed we needed one more exception, for when the
passed attribute type is invalid.

This patch adds the Koha::Exceptions::Patron::Attribute::InvalidType
exception. It adds a format for stringifying it, and tests are added.
The previous exceptions tests lacked one case, so I add them on this
patch as well.

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

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list