Remove useless file, create a construct for the TypeErrorMethod class
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 51be7f9e0e
commit 9d87ee2c83

@ -2,13 +2,18 @@
namespace ExceptionHandle;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpSpecializedException;
use Throwable;
class TypeErrorMethod extends HttpSpecializedException {
protected $code = 400;
protected $message = "Bad Parameters";
protected string $title = "400 Bad Parameters";
protected string $description = "The API need a 'method' query params in URL. Exemple :'http://url?method=getSomething'";
protected $message = "Bad Parameters, The API need a 'method' query params in URL. Exemple :'http://url?method=getSomething'";
public function __construct(ServerRequestInterface $request,?Throwable $previous = null)
{
parent::__construct($request, $this->message, $previous);
}
}

Loading…
Cancel
Save