From e765145c6803ddc4661901468b55c32956322cdd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 12 Jan 2008 20:55:41 -0800 Subject: [PATCH] We need to throw Exceptions rather than trigger_error() * PrinterNavigation.php: (BSPrinterNavigation::setFocus) --- PrinterNavigation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PrinterNavigation.php b/PrinterNavigation.php index 50101a2..7398044 100644 --- a/PrinterNavigation.php +++ b/PrinterNavigation.php @@ -137,7 +137,7 @@ class BSPrinterNavigation } else { - trigger_error('Invalid key for scope'); + throw new Exception('Invalid key for scope'); } } else if ($scope == 'link') @@ -148,12 +148,12 @@ class BSPrinterNavigation } else { - trigger_error('Invalid key for scope'); + throw new Exception('Invalid key for scope'); } } else { - trigger_error('BSPrinterNavigation::setFocus() only allows setting of focus for tab and link scopes'); + throw new Exception('BSPrinterNavigation::setFocus() only allows setting of focus for tab and link scopes'); } } -- 2.43.5