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 e83a898cb8
commit 1875861735

View file

@ -22,7 +22,7 @@ class ProfileValidationError extends BaseException {
* A meaningful 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;
}