pass $error_code to parent BaseException

This commit is contained in:
Marc Michalsky 2023-08-17 12:51:28 +02:00 committed by Jens Schuppe
parent 7c7c040b30
commit eacc9cf496

View file

@ -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;
} }