Added ImportException
This commit is contained in:
parent
cccbe3f934
commit
553bf5ede0
2 changed files with 25 additions and 0 deletions
|
@ -295,6 +295,11 @@
|
||||||
*/
|
*/
|
||||||
const GitlabServiceException = -1756;
|
const GitlabServiceException = -1756;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see ImportException
|
||||||
|
*/
|
||||||
|
const ImportException = -1757;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All the exception codes from NCC
|
* All the exception codes from NCC
|
||||||
|
|
20
src/ncc/Exceptions/ImportException.php
Normal file
20
src/ncc/Exceptions/ImportException.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
|
class ImportException extends Exception
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
|
{
|
||||||
|
parent::__construct($message, ExceptionCodes::ImportException, $previous);
|
||||||
|
$this->message = $message;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue