diff --git a/Model/BVSEOSDK/BV.php b/Model/BVSEOSDK/BV.php index 6a3c900..a8658ba 100644 --- a/Model/BVSEOSDK/BV.php +++ b/Model/BVSEOSDK/BV.php @@ -167,7 +167,7 @@ public function __construct($params = array()) $this->SEO = $this->spotlights; break; default: - throw new Exception('Invalid content_type value provided: '.$this->config['content_type']); + throw new \Exception('Invalid content_type value provided: '.$this->config['content_type']); } } } @@ -175,21 +175,21 @@ public function __construct($params = array()) protected function validateParameters($params) { if (!is_array($params)) { - throw new Exception( + throw new \Exception( 'BV class constructor argument $params must be an array.' ); } // check to make sure we have the required parameters. if (empty($params['bv_root_folder'])) { - throw new Exception( + throw new \Exception( 'BV class constructor argument $params is missing required bv_root_folder key. An '. 'array containing bv_root_folder (string) is expected.' ); } if (empty($params['subject_id'])) { - throw new Exception( + throw new \Exception( 'BV class constructor argument $params is missing required subject_id key. An '. 'array containing subject_id (string) is expected.' ); diff --git a/Model/BVSEOSDK/BVUtility.php b/Model/BVSEOSDK/BVUtility.php index 1822d8d..38929e0 100644 --- a/Model/BVSEOSDK/BVUtility.php +++ b/Model/BVSEOSDK/BVUtility.php @@ -82,7 +82,7 @@ public static function checkType($type, $typeType = 'ct') foreach ($typeArray as $key => $value) { $supportList[] = $key.'='.$value; } - throw new Exception('Obtained not supported '.$typeName + throw new \Exception('Obtained not supported '.$typeName .'. BV Class supports following '.$typeName.': ' .implode(', ', $supportList)); } diff --git a/Model/BVSEOSDK/Base.php b/Model/BVSEOSDK/Base.php index 4219a17..6b7e3f7 100644 --- a/Model/BVSEOSDK/Base.php +++ b/Model/BVSEOSDK/Base.php @@ -51,7 +51,7 @@ public function __construct($params = array()) protected function validateParams($params) { if (!is_array($params)) { - throw new Exception('BV Base Class missing config array.'); + throw new \Exception('BV Base Class missing config array.'); } } @@ -257,7 +257,7 @@ protected function _renderSEO($access_method) try { $payload = $this->_getFullSeoContents($access_method); - } catch (Exception $e) { + } catch (\Exception $e) { $this->_setBuildMessage($e->getMessage()); } }