TargetNotFoundError
class TargetNotFoundError extends Error (View source)
A "target not found" error that is issued when a referenced object/value could not be fetched
Constants
SEVERITY_NOTICE |
|
SEVERITY_WARNING |
|
SEVERITY_ERROR |
|
SEVERITY_OK |
|
Properties
protected string | $message | The error message, could also be a key for translation. |
from Message |
protected string | $title | An optional title for the message (used eg. in flashMessages). |
from Message |
protected int | $code | The error code. |
from Message |
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