>|null $errors List of errors returned in an HTTP * response or null. Defaults to []. */ public function __construct( $message, $code = 0, ?Exception $previous = null, $errors = [] ) { if (version_compare(PHP_VERSION, '5.3.0') >= 0) { parent::__construct($message, $code, $previous); } else { parent::__construct($message, $code); } $this->errors = $errors; } /** * An example of the possible errors returned. * * [ * { * "domain": "global", * "reason": "authError", * "message": "Invalid Credentials", * "locationType": "header", * "location": "Authorization", * } * ] * * @return array>|null List of errors returned in an HTTP response or null. */ public function getErrors() { return $this->errors; } }