class ValidationException extends HttpException (View source)

Properties

protected string $status

Define the status code has message

from  HttpException

Methods

__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

Details

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

ValidationException constructor

Parameters

string $message
string $status
array $errors

string getStatus()

Get the define user error code

Return Value

string

string getStatusCode()

Get the status code

Return Value

string

array getErrors()

Get the errors

Return Value

array