1.0.0 Alpha Release #59

Merged
netkas merged 213 commits from v1.0.0_alpha into master 2023-01-29 23:27:58 +00:00
2 changed files with 28 additions and 3 deletions
Showing only changes of commit 847128cdc1 - Show all commits

View file

@ -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
];
}

View file

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