Add Exception directory, try to throw first custom exception
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a627f7eff5
commit
df099c67a9
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Slim\Exception\HttpSpecializedException;
|
||||
|
||||
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'";
|
||||
|
||||
}
|
Loading…
Reference in new issue