Koha-clms/Koha/Exceptions
Tomás Cohen Arazi 2e32cf12a5
Bug 39632: Extend plugin exceptions with more useful parameters
This patch tweaks the `Koha::Exceptions::Plugin` class by adding an
extra parameter to the plugin install and upgrade related exceptions so
they carry the actuall error (if any).

* Koha::Exceptions::Plugin::InstallDied: install_error
* Koha::Exceptions::Plugin::UpgradeDied: upgrade_error

I didn't pick plain 'error' because it is a reserved word for
`Exception::Class` which makes it stringify using its value only.

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

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit afd530ab0d)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-08-22 09:48:13 +02:00
..
Acquisition Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Checkouts Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
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 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Account.pm Bug 33176: Enforce bad values 2023-06-12 11:52:07 -03:00
ArticleRequest.pm Bug 39191: Add `format` parameter to Koha::Exceptions::ArticleRequest::WrongFormat 2025-04-23 09:35:20 +02:00
Auth.pm Bug 31378: Add Auth mojo plugin 2022-11-08 14:30:33 -03:00
Authentication.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Authorization.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
BackgroundJob.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
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 Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
CirculationRule.pm Bug 33028: (follow-up) Add POD to new Exception 2023-07-19 12:06:49 -03:00
ClubHold.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Config.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CurbsidePickup.pm Bug 30650: Prevent pickup to be created on holiday 2022-07-29 15:00:51 -03:00
Elasticsearch.pm Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
Hold.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Ill.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Library.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MarcOverlayRule.pm Bug 40419: Fix wrong license 2025-07-24 10:23:34 +02:00
Metadata.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Object.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Password.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patron.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Plugin.pm Bug 39632: Extend plugin exceptions with more useful parameters 2025-08-22 09:48:13 +02:00
Preservation.pm Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
REST.pm Bug 28907: Add REST exceptions for public routes auth 2025-03-06 13:54:29 +01: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 Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Token.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TransferLimit.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Virtualshelf.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
XSLT.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00