Changed type Exception to Throwable

This commit is contained in:
netkas 2025-01-31 13:29:18 -05:00
parent 0ed6a36d50
commit 4c28112e3b

View file

@ -2,9 +2,9 @@
namespace Socialbox\Exceptions\Standard; namespace Socialbox\Exceptions\Standard;
use Exception;
use InvalidArgumentException; use InvalidArgumentException;
use Socialbox\Enums\StandardError; use Socialbox\Enums\StandardError;
use Throwable;
class InvalidRpcArgumentException extends StandardRpcException class InvalidRpcArgumentException extends StandardRpcException
{ {
@ -12,9 +12,9 @@
* Thrown when a required parameter is missing * Thrown when a required parameter is missing
* *
* @param string $parameterName The name of the parameter that is missing * @param string $parameterName The name of the parameter that is missing
* @param string|Exception|null $reason The reason why the parameter is invalid can be a string or an exception or null * @param string|Throwable|null $reason The reason why the parameter is invalid can be a string or an exception or null
*/ */
public function __construct(string $parameterName, null|string|Exception $reason=null) public function __construct(string $parameterName, null|string|Throwable $reason=null)
{ {
if(is_null($reason)) if(is_null($reason))
{ {