Error
class Error extends Error (View source)
This object holds a validation error.
Constants
SEVERITY_NOTICE |
|
SEVERITY_WARNING |
|
SEVERITY_ERROR |
|
SEVERITY_OK |
|
Properties
protected string | $message | ||
protected string | $title | An optional title for the message (used eg. in flashMessages). |
from Message |
protected int | $code | ||
protected array | $arguments | The message arguments. Will be replaced in the message body. |
from Message |
protected string | $severity | The severity of this message ('Error'). |
from Error |
Methods
__construct(string $message, int|null $code = null, array $arguments = [], string $title = '')
Constructs this error
from
Message
Details
__construct(string $message, int|null $code = null, array $arguments = [], string $title = '')
Constructs this error
string
getMessage()
Returns the error message
bool
hasCode()
No description
int
getCode()
Returns the error code
array
getArguments()
No description
bool
hasTitle()
No description
string
getTitle()
No description
string
getSeverity()
No description
string
render()
No description
string
__toString()
Converts this error into a string