We need to throw Exceptions rather than trigger_error()
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 13 Jan 2008 04:55:41 +0000 (20:55 -0800)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 13 Jan 2008 04:55:41 +0000 (20:55 -0800)
* PrinterNavigation.php:
(BSPrinterNavigation::setFocus)

PrinterNavigation.php

index 50101a2c9c33bb22eb6856c5dc6dcb6a8dadd730..739804405e81426f0de9ee0c0d9d58529aef91ad 100644 (file)
@@ -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');
                }
        }