solved dependencies and namespaces

This commit is contained in:
Guillermo Dev
2018-10-10 14:20:01 +02:00
parent 3b85ebdc40
commit 83c4238f59
4 changed files with 33 additions and 9 deletions

View 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;
}
}