ncc/src/ncc/Exceptions/ComposerException.php
2022-12-04 06:43:54 +00:00

28 lines
No EOL
702 B
PHP

<?php
/** @noinspection PhpPropertyOnlyWrittenInspection */
namespace ncc\Exceptions;
use Exception;
use ncc\Abstracts\ExceptionCodes;
use Throwable;
class ComposerException extends Exception
{
/**
* @var Throwable|null
*/
private ?Throwable $previous;
/**
* @param string $message
* @param Throwable|null $previous
*/
public function __construct(string $message = "", ?Throwable $previous = null)
{
parent::__construct($message, ExceptionCodes::ComposerException, $previous);
$this->message = $message;
$this->previous = $previous;
}
}