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 26 additions and 0 deletions
Showing only changes of commit 1f4ef9aba1 - Show all commits

View file

@ -273,6 +273,11 @@
*/ */
const HttpException = -1752; const HttpException = -1752;
/**
* @see UnsupportedRemoteSourceTypeException
*/
const UnsupportedRemoteSourceTypeException = -1753;
/** /**
* All the exception codes from NCC * All the exception codes from NCC
*/ */
@ -329,5 +334,6 @@
self::UserAbortedOperationException, self::UserAbortedOperationException,
self::MissingDependencyException, self::MissingDependencyException,
self::HttpException, self::HttpException,
self::UnsupportedRemoteSourceTypeException
]; ];
} }

View file

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