From a5c48809c3e6aa116b5f9c4651822f327ded38c7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 9 Mar 2023 11:52:02 -0300 Subject: [PATCH] Bug 33161: Make stub method throw an exception Signed-off-by: Tomas Cohen Arazi --- Koha/Object.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Object.pm b/Koha/Object.pm index e463f949205..4ab49db28bd 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -687,13 +687,13 @@ being hashrefs containing 'str', 'type' and optionally 'category'. This is then used in to_api to render the _strings embed when requested. -Note: this only returns an empty I. Each class should have its -own mapping returned. +Note: this method throws an exception, so devs get reminded adding I<+strings> +to the spec is not enough. Each class should have its own mapping returned. =cut sub strings_map { - return {}; + Koha::Exception->throw("This method needs to be subclassed"); } =head3 public_read_list -- 2.34.1