Added exception \ncc\Exceptions > GithubServiceException
https://git.n64.cc/nosial/ncc/-/issues/28
This commit is contained in:
parent
623155d96e
commit
7b031af53d
1 changed files with 20 additions and 0 deletions
20
src/ncc/Exceptions/GithubServiceException.php
Normal file
20
src/ncc/Exceptions/GithubServiceException.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
|
class GithubServiceException extends Exception
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
|
{
|
||||||
|
parent::__construct($message, ExceptionCodes::GithubServiceException, $previous);
|
||||||
|
$this->message = $message;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue