From 847128cdc1dc89b5627bb10a1e3320378a8cdb04 Mon Sep 17 00:00:00 2001 From: Netkas Date: Fri, 16 Dec 2022 00:37:43 -0500 Subject: [PATCH] Added \ncc\Exceptions > UnsupportedProjectTypeException https://git.n64.cc/nosial/ncc/-/issues/28 --- src/ncc/Abstracts/ExceptionCodes.php | 10 ++++++--- .../UnsupportedProjectTypeException.php | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/ncc/Exceptions/UnsupportedProjectTypeException.php diff --git a/src/ncc/Abstracts/ExceptionCodes.php b/src/ncc/Abstracts/ExceptionCodes.php index f2bd962..60d7412 100644 --- a/src/ncc/Abstracts/ExceptionCodes.php +++ b/src/ncc/Abstracts/ExceptionCodes.php @@ -2,8 +2,6 @@ namespace ncc\Abstracts; - use ncc\Exceptions\GitlabServiceException; - /** * @author Zi Xing Narrakas * @copyright Copyright (C) 2022-2022. Nosial - All Rights Reserved. @@ -320,6 +318,11 @@ */ const NotSupportedException = -1761; + /** + * @see UnsupportedProjectTypeException + */ + const UnsupportedProjectTypeException = -1762; + /** * All the exception codes from NCC */ @@ -382,6 +385,7 @@ self::GitlabServiceException, self::GitTagsException, self::AuthenticationException, - self::NotSupportedException + self::NotSupportedException, + self::UnsupportedProjectTypeException ]; } \ No newline at end of file diff --git a/src/ncc/Exceptions/UnsupportedProjectTypeException.php b/src/ncc/Exceptions/UnsupportedProjectTypeException.php new file mode 100644 index 0000000..384a2b2 --- /dev/null +++ b/src/ncc/Exceptions/UnsupportedProjectTypeException.php @@ -0,0 +1,21 @@ +message = $message; + } + } \ No newline at end of file