Koha-clms/Koha/Exceptions
Tomas Cohen Arazi 923dc5e078
Bug 37510: Make Koha::Object->delete throw Koha::Exception
This patch makes Koha::Object->delete wrap DBIC exceptions on FK
constraints and throw a Koha::Exception::Object::FKConstraint exception
instead. This will allow us better handling it from the callers.

To test:
1. Apply the unit tests patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/Object.t
=> FAIL: A DBIC exception is thrown instead, tests fail
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-16 17:33:46 +02:00
..
Acquisition
…
Checkouts
…
ERM/EUsage Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
Item Bug 33817: Enforce server-side 2023-07-10 15:43:09 -03:00
Patron Bug 32610: (QA follow-up) Tidy exceptions file 2024-04-30 17:09:52 +02:00
Account.pm Bug 33176: Enforce bad values 2023-06-12 11:52:07 -03:00
ArticleRequest.pm
…
Auth.pm
…
Authentication.pm
…
Authorization.pm
…
BackgroundJob.pm
…
Booking.pm Bug 29002: Add bookings objects and API classes 2023-11-03 12:04:07 -03:00
Calendar.pm Bug 27249: Add missing POD for Koha::Exceptions::Calendar 2023-10-17 14:45:33 -03:00
Checkin.pm Bug 32121: Show an alert when adding a checked out item to an item bundle 2023-03-27 12:50:02 +02:00
Checkout.pm
…
CirculationRule.pm Bug 33028: (follow-up) Add POD to new Exception 2023-07-19 12:06:49 -03:00
ClubHold.pm
…
Config.pm
…
CurbsidePickup.pm
…
Elasticsearch.pm
…
Hold.pm Bug 31692: Add Koha::Hold::change_type and unit tests 2023-10-10 09:58:57 -03:00
Ill.pm
…
Library.pm
…
MarcOverlayRule.pm
…
Metadata.pm
…
Object.pm Bug 37510: Make Koha::Object->delete throw Koha::Exception 2024-08-16 17:33:46 +02:00
Password.pm
…
Patron.pm Bug 26170: Add protected status for patrons 2023-11-01 17:23:06 -03:00
Plugin.pm
…
Preservation.pm Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
REST.pm Bug 37018: Add Koha::Exceptions::REST 2024-08-01 17:26:40 +02:00
Suggestion.pm Bug 32942: (QA follow-up) Moving Suggestion->STATUS check to Suggestion::store 2023-09-18 15:31:45 -03:00
SysPref.pm
…
Token.pm Bug 34478: op-cud - Trick CGI directly 2024-03-01 10:56:04 +01:00
TransferLimit.pm
…
Virtualshelf.pm
…
XSLT.pm Bug 12758: (QA follow-up) Enhance POD 2022-11-09 09:58:56 -03:00