application/inc/Exceptions/InvalidInput.php
<?php
namespace App\Exceptions;
use Throwable;
class InvalidInput extends Exception
{
/**
* Set up the exception.
*/
public function __construct(string $message, int $code = 422, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}