From d561e568b4cf4ec6d51191d5fbf4cdee12a738fc Mon Sep 17 00:00:00 2001 From: 4Giedrius <4giedrius@gmail.com> Date: Mon, 23 Mar 2015 15:39:06 +0200 Subject: [PATCH] Exceptions should be namespaced. Fixes #298 --- src/bb-modules/Api/Controller/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-modules/Api/Controller/Client.php b/src/bb-modules/Api/Controller/Client.php index fe74e7e72..f9364714e 100644 --- a/src/bb-modules/Api/Controller/Client.php +++ b/src/bb-modules/Api/Controller/Client.php @@ -151,15 +151,15 @@ class Client implements InjectionAwareInterface } if(!isset($_SERVER['PHP_AUTH_USER'])) { - throw new Box_Exception('Authentication Failed', null, 201); + throw new \Box_Exception('Authentication Failed', null, 201); } if(!isset($_SERVER['PHP_AUTH_PW'])) { - throw new Box_Exception('Authentication Failed', null, 202); + throw new \Box_Exception('Authentication Failed', null, 202); } if(empty($_SERVER['PHP_AUTH_PW'])) { - throw new Box_Exception('Authentication Failed', null, 206); + throw new \Box_Exception('Authentication Failed', null, 206); } return array($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);