classe ValidationException étends HttpException (Voir la source)

Propriétés

protected string $status

Define the status code has message

depuis  HttpException

Méthodes

__construct(string $message, string $status = 'VALIDATION_ERROR', array $errors = [])

ValidationException constructor

string
getStatus()

Get the define user error code

string
getStatusCode()

Get the status code

array
getErrors()

Get the errors

Détails

__construct(string $message, string $status = 'VALIDATION_ERROR', array $errors = [])

ValidationException constructor

Paramètres

string $message
string $status
array $errors

string getStatus()

Get the define user error code

Valeur de retour

string

string getStatusCode()

Get the status code

Valeur de retour

string

array getErrors()

Get the errors

Valeur de retour

array