Tomás Cohen Arazi <> changed:

           What    |Removed                     |Added
  Attachment #56393|0                           |1
        is obsolete|                            |

--- Comment #15 from Tomás Cohen Arazi <> ---
Created attachment 56459
Bug 17425: Make Koha::Object raise exceptions

This patch makes Koha::Object raise exceptions in the following
- When a non existent accessor is called
- When a non existent property is tried to be updated using ->set

On implementing this change, we introduce Koha::Exceptions::Object class
to contain all Koha::Object-specific exception definitions.

Unit tests for this change are introduced in

To test:
- Apply the patches on master
- Run:
  $ prove t/db_dependent/Koha/Objects.t
=> SUCCESS: Tests return green
- Sign off

Note: A followup introduces the dependency for Try::Tiny. It needs to be
present for running the tests.

Signed-off-by: Kyle M Hall <>
Signed-off-by: Tomas Cohen Arazi <>

You are receiving this mail because:
You are watching all bug changes.
Koha-bugs mailing list
website :
git :
bugs :

Reply via email to