From 9e94c6ace375abdf1d61c4c1b32f8fe3f4ebb69c Mon Sep 17 00:00:00 2001 From: Netkas Date: Sat, 22 Oct 2022 09:03:48 -0400 Subject: [PATCH] Added BuildException.php --- src/ncc/Abstracts/ExceptionCodes.php | 9 ++++++++- src/ncc/Exceptions/BuildException.php | 28 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/ncc/Exceptions/BuildException.php diff --git a/src/ncc/Abstracts/ExceptionCodes.php b/src/ncc/Abstracts/ExceptionCodes.php index 3e904b9..9ae32a2 100644 --- a/src/ncc/Abstracts/ExceptionCodes.php +++ b/src/ncc/Abstracts/ExceptionCodes.php @@ -5,6 +5,7 @@ use ncc\Exceptions\AccessDeniedException; use ncc\Exceptions\AutoloadGeneratorException; use ncc\Exceptions\BuildConfigurationNotFoundException; + use ncc\Exceptions\BuildException; use ncc\Exceptions\ComponentVersionNotFoundException; use ncc\Exceptions\ConstantReadonlyException; use ncc\Exceptions\DirectoryNotFoundException; @@ -168,6 +169,11 @@ */ const UnsupportedExtensionVersionException = -1726; + /** + * @see BuildException + */ + const BuildException = -1727; + /** * All the exception codes from NCC */ @@ -198,6 +204,7 @@ self::UnsupportedCompilerExtensionException, self::InvalidPropertyValueException, self::InvalidVersionConfigurationException, - self::UnsupportedExtensionVersionException + self::UnsupportedExtensionVersionException, + self::BuildException ]; } \ No newline at end of file diff --git a/src/ncc/Exceptions/BuildException.php b/src/ncc/Exceptions/BuildException.php new file mode 100644 index 0000000..7fbb3d8 --- /dev/null +++ b/src/ncc/Exceptions/BuildException.php @@ -0,0 +1,28 @@ +message = $message; + $this->previous = $previous; + } + } \ No newline at end of file