Refactored Exceptions
This commit is contained in:
parent
893166ebf8
commit
10cd70ff79
58 changed files with 48 additions and 260 deletions
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
class ArchiveException extends Exception
|
class ArchiveException extends Exception
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ArchiveException, $previous);
|
parent::__construct($message, ExceptionCodes::ArchiveException, $previous);
|
||||||
|
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::AuthenticationException, $previous);
|
parent::__construct($message, ExceptionCodes::AuthenticationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
class BuildConfigurationNotFoundException extends Exception
|
class BuildConfigurationNotFoundException extends Exception
|
||||||
{
|
{
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -19,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::BuildConfigurationNotFoundException, $previous);
|
parent::__construct($message, ExceptionCodes::BuildConfigurationNotFoundException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class BuildException extends Exception
|
class BuildException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::BuildException, $previous);
|
parent::__construct($message, ExceptionCodes::BuildException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,10 +10,6 @@
|
||||||
|
|
||||||
class ComponentChecksumException extends Exception
|
class ComponentChecksumException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
|
@ -22,7 +18,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ComponentChecksumException, $previous);
|
parent::__construct($message, ExceptionCodes::ComponentChecksumException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class ComponentDecodeException extends Exception
|
class ComponentDecodeException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ComponentDecodeException, $previous);
|
parent::__construct($message, ExceptionCodes::ComponentDecodeException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,11 +9,6 @@
|
||||||
|
|
||||||
class ComposerDisabledException extends \Exception
|
class ComposerDisabledException extends \Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -21,7 +16,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ComposerDisabledException, $previous);
|
parent::__construct($message, ExceptionCodes::ComposerDisabledException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class ComposerException extends Exception
|
class ComposerException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ComposerException, $previous);
|
parent::__construct($message, ExceptionCodes::ComposerException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class ComposerNotAvailableException extends Exception
|
class ComposerNotAvailableException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var null
|
|
||||||
*/
|
|
||||||
private $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param $previous
|
* @param $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", $previous = null)
|
public function __construct(string $message = "", $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ComposerNotAvailableException, $previous);
|
parent::__construct($message, ExceptionCodes::ComposerNotAvailableException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -17,6 +17,5 @@
|
||||||
public function __construct(string $path = "", ?Throwable $previous = null)
|
public function __construct(string $path = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct('The file \'' . realpath($path) . '\' was not found', ExceptionCodes::DirectoryNotFoundException, $previous);
|
parent::__construct('The file \'' . realpath($path) . '\' was not found', ExceptionCodes::DirectoryNotFoundException, $previous);
|
||||||
$this->code = ExceptionCodes::DirectoryNotFoundException;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,8 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace ncc\Exceptions;
|
|
||||||
|
|
||||||
class ExecutionUnitNotFoundException extends \Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
|
@ -19,6 +19,5 @@
|
||||||
public function __construct(string $path = "", ?Throwable $previous = null)
|
public function __construct(string $path = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct('The file \'' . realpath($path) . '\' was not found', ExceptionCodes::FileNotFoundException, $previous);
|
parent::__construct('The file \'' . realpath($path) . '\' was not found', ExceptionCodes::FileNotFoundException, $previous);
|
||||||
$this->code = ExceptionCodes::FileNotFoundException;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -14,6 +14,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::GitCheckoutException, $previous);
|
parent::__construct($message, ExceptionCodes::GitCheckoutException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::GitCloneException, $previous);
|
parent::__construct($message, ExceptionCodes::GitCloneException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::GitTagsException, $previous);
|
parent::__construct($message, ExceptionCodes::GitTagsException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::GithubServiceException, $previous);
|
parent::__construct($message, ExceptionCodes::GithubServiceException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::GitlabServiceException, $previous);
|
parent::__construct($message, ExceptionCodes::GitlabServiceException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::HttpException, $previous);
|
parent::__construct($message, ExceptionCodes::HttpException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class IOException extends Exception
|
class IOException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::IOException, $previous);
|
parent::__construct($message, ExceptionCodes::IOException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::ImportException, $previous);
|
parent::__construct($message, ExceptionCodes::ImportException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class InstallationException extends Exception
|
class InstallationException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InstallationException, $previous);
|
parent::__construct($message, ExceptionCodes::InstallationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class InternalComposerNotAvailableException extends Exception
|
class InternalComposerNotAvailableException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InternalComposerNotAvailable, $previous);
|
parent::__construct($message, ExceptionCodes::InternalComposerNotAvailable, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidBuildConfigurationException, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidBuildConfigurationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class InvalidConstantNameException extends Exception
|
class InvalidConstantNameException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidConstantNameException, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidConstantNameException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidDependencyConfiguration, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidDependencyConfiguration, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,12 +3,17 @@
|
||||||
namespace ncc\Exceptions;
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
class InvalidExecutionPolicyName extends Exception
|
class InvalidExecutionPolicyName extends Exception
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidExecutionPolicyName, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
class InvalidPackageException extends Exception
|
class InvalidPackageException extends Exception
|
||||||
{
|
{
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -19,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidPackageException, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidPackageException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
class InvalidProjectBuildConfiguration extends Exception
|
class InvalidProjectBuildConfiguration extends Exception
|
||||||
{
|
{
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -19,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidProjectBuildConfiguration, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidProjectBuildConfiguration, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -12,15 +12,7 @@
|
||||||
*/
|
*/
|
||||||
class InvalidProjectConfigurationException extends Exception
|
class InvalidProjectConfigurationException extends Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The full property name that needs correcting
|
|
||||||
*
|
|
||||||
* @var string|null
|
* @var string|null
|
||||||
*/
|
*/
|
||||||
private ?string $property;
|
private ?string $property;
|
||||||
|
@ -33,8 +25,14 @@
|
||||||
public function __construct(string $message = "", ?string $property=null, ?Throwable $previous = null)
|
public function __construct(string $message = "", ?string $property=null, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidProjectConfigurationException, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidProjectConfigurationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
$this->property = $property;
|
$this->property = $property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getProperty(): ?string
|
||||||
|
{
|
||||||
|
return $this->property;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -2,10 +2,18 @@
|
||||||
|
|
||||||
namespace ncc\Exceptions;
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
class InvalidPropertyValueException extends \Exception
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
|
class InvalidPropertyValueException extends Exception
|
||||||
{
|
{
|
||||||
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidPropertyValueException, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,8 +9,6 @@
|
||||||
class InvalidScopeException extends Exception
|
class InvalidScopeException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Public Constructor
|
|
||||||
*
|
|
||||||
* @param string $scope
|
* @param string $scope
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class InvalidVersionConfigurationException extends Exception
|
class InvalidVersionConfigurationException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::InvalidVersionConfigurationException, $previous);
|
parent::__construct($message, ExceptionCodes::InvalidVersionConfigurationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class MissingDependencyException extends Exception
|
class MissingDependencyException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::MissingDependencyException, $previous);
|
parent::__construct($message, ExceptionCodes::MissingDependencyException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class NoAvailableUnitsException extends Exception
|
class NoAvailableUnitsException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::NoAvailableUnitsException, $previous);
|
parent::__construct($message, ExceptionCodes::NoAvailableUnitsException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,11 +8,6 @@
|
||||||
|
|
||||||
class NoUnitsFoundException extends Exception
|
class NoUnitsFoundException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -20,7 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::NoUnitsFoundException, $previous);
|
parent::__construct($message, ExceptionCodes::NoUnitsFoundException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class NotImplementedException extends Exception
|
class NotImplementedException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::NotImplementedException, $previous);
|
parent::__construct($message, ExceptionCodes::NotImplementedException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::NotSupportedException, $previous);
|
parent::__construct($message, ExceptionCodes::NotSupportedException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class PackageAlreadyInstalledException extends Exception
|
class PackageAlreadyInstalledException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackageAlreadyInstalledException, $previous);
|
parent::__construct($message, ExceptionCodes::PackageAlreadyInstalledException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
class PackageFetchException extends \Exception
|
class PackageFetchException extends \Exception
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackageFetchException, $previous);
|
parent::__construct($message, ExceptionCodes::PackageFetchException, $previous);
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class PackageLockException extends Exception
|
class PackageLockException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackageLockException, $previous);
|
parent::__construct($message, ExceptionCodes::PackageLockException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class PackageNotFoundException extends Exception
|
class PackageNotFoundException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackageNotFoundException, $previous);
|
parent::__construct($message, ExceptionCodes::PackageNotFoundException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class PackageParsingException extends Exception
|
class PackageParsingException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackageParsingException, $previous);
|
parent::__construct($message, ExceptionCodes::PackageParsingException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class PackagePreparationFailedException extends Exception
|
class PackagePreparationFailedException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::PackagePreparationFailedException, $previous);
|
parent::__construct($message, ExceptionCodes::PackagePreparationFailedException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,11 +3,17 @@
|
||||||
namespace ncc\Exceptions;
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
class ProjectConfigurationNotFoundException extends Exception
|
class ProjectConfigurationNotFoundException extends Exception
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, $previous);
|
parent::__construct($message, ExceptionCodes::ProjectConfigurationNotFoundException, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,11 +9,6 @@
|
||||||
|
|
||||||
class ResourceChecksumException extends Exception
|
class ResourceChecksumException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param int $code
|
* @param int $code
|
||||||
|
@ -22,8 +17,5 @@
|
||||||
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->code = $code;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class RunnerExecutionException extends Exception
|
class RunnerExecutionException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::RunnerExecutionException, $previous);
|
parent::__construct($message, ExceptionCodes::RunnerExecutionException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::SymlinkException, $previous);
|
parent::__construct($message, ExceptionCodes::SymlinkException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class UndefinedExecutionPolicyException extends Exception
|
class UndefinedExecutionPolicyException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UndefinedExecutionPolicyException, $previous);
|
parent::__construct($message, ExceptionCodes::UndefinedExecutionPolicyException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedArchiveException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedArchiveException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class UnsupportedCompilerExtensionException extends Exception
|
class UnsupportedCompilerExtensionException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedCompilerExtensionException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedCompilerExtensionException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class UnsupportedComponentTypeException extends Exception
|
class UnsupportedComponentTypeException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedComponentTypeException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedComponentTypeException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,11 +3,17 @@
|
||||||
namespace ncc\Exceptions;
|
namespace ncc\Exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use ncc\Abstracts\ExceptionCodes;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
class UnsupportedExtensionVersionException extends Exception
|
class UnsupportedExtensionVersionException extends Exception
|
||||||
{
|
{
|
||||||
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @param Throwable|null $previous
|
||||||
|
*/
|
||||||
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedExtensionVersionException, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
class UnsupportedPackageException extends Exception
|
class UnsupportedPackageException extends Exception
|
||||||
{
|
{
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -19,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedPackageException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedPackageException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedProjectTypeException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedProjectTypeException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UnsupportedRemoteSourceTypeException, $previous);
|
parent::__construct($message, ExceptionCodes::UnsupportedRemoteSourceTypeException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,11 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace ncc\Exceptions;
|
|
||||||
|
|
||||||
class UnsupportedRunnerException extends \Exception
|
|
||||||
{
|
|
||||||
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
|
||||||
{
|
|
||||||
parent::__construct($message, $code, $previous);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class UserAbortedOperationException extends Exception
|
class UserAbortedOperationException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", Throwable $previous = null)
|
public function __construct(string $message = "", Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::UserAbortedOperationException, $previous);
|
parent::__construct($message, ExceptionCodes::UserAbortedOperationException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
class VersionNotFoundException extends Exception
|
class VersionNotFoundException extends Exception
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Throwable|null
|
|
||||||
*/
|
|
||||||
private ?Throwable $previous;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param Throwable|null $previous
|
* @param Throwable|null $previous
|
||||||
|
@ -22,7 +17,5 @@
|
||||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($message, ExceptionCodes::VersionNotFoundException, $previous);
|
parent::__construct($message, ExceptionCodes::VersionNotFoundException, $previous);
|
||||||
$this->message = $message;
|
|
||||||
$this->previous = $previous;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue