FormError
extends RuntimeException
in package
FinalYes
Report a generation failure with its stable code and field path.
Table of Contents
Properties
- $errorCode : string
- $path : string
Methods
- __construct() : mixed
- Create a generation error.
- getErrorCode() : string
- Return the stable error code.
- getPath() : string
- Return the affected field path.
Properties
$errorCode read-only
private
string
$errorCode
$path read-only
private
string
$path
= ''
Methods
__construct()
Create a generation error.
public
__construct(string $errorCode, string $message[, string $path = '' ][, Throwable|null $previous = null ]) : mixed
Parameters
- $errorCode : string
- $message : string
- $path : string = ''
- $previous : Throwable|null = null
getErrorCode()
Return the stable error code.
public
getErrorCode() : string
Return values
stringgetPath()
Return the affected field path.
public
getPath() : string