Added ImportException

This commit is contained in:
Netkas 2022-12-14 22:31:52 -05:00
parent cccbe3f934
commit 553bf5ede0
2 changed files with 25 additions and 0 deletions

View file

@ -295,6 +295,11 @@
*/
const GitlabServiceException = -1756;
/**
* @see ImportException
*/
const ImportException = -1757;
/**
* All the exception codes from NCC

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