solved dependencies and namespaces
This commit is contained in:
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