pass $error_code to parent BaseException
This commit is contained in:
parent
7c7c040b30
commit
eacc9cf496
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class ProfileValidationError extends BaseException {
|
||||||
* A meaningful error code
|
* A meaningful error code
|
||||||
*/
|
*/
|
||||||
public function __construct(string $affected_field_name, string $message = '', string $error_code = '') {
|
public function __construct(string $affected_field_name, string $message = '', string $error_code = '') {
|
||||||
parent::__construct($message, 1);
|
parent::__construct($message, $error_code);
|
||||||
$this->affected_field_name = $affected_field_name;
|
$this->affected_field_name = $affected_field_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue