solved dependencies and namespaces
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace BSR\Search;
|
||||
namespace BSR\BookSearch;
|
||||
|
||||
use BSR\Config\Configuration;
|
||||
use BSR\Webservice\Exception\WebException;
|
||||
use BSR\BookSearch\Exception\WebException;
|
||||
//use BSR\Webservice\Logger;
|
||||
|
||||
mb_http_output('UTF-8');
|
||||
24
src/BookSearch/Exception/WebException.php
Normal file
24
src/BookSearch/Exception/WebException.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace BSR\BookSearch\Exception;
|
||||
|
||||
class WebException extends \Exception
|
||||
{
|
||||
private $exceptionName;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $reason
|
||||
* @param int $code
|
||||
*/
|
||||
function __construct($name, $reason, $code)
|
||||
{
|
||||
$this->exceptionName = $name;
|
||||
parent::__construct($reason, $code);
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->exceptionName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user