Throw exceptions for failed requests.

Created on 15 December 2023, about 1 year ago

I would like to bring back exceptions as it was implemented in early 2.0 version.

i mean, override onRequestError from parent \Drupal\apitools\Api\Client\ClientBase class

protected function onRequestError(\Exception $e) {
  watchdog_exception('apitools', $e);

  return NULL;
}

to:

use Drupal\Core\Utility\Error;

protected function onRequestError(\Exception $e) {
  Error::logException($this->logger, $e);
  throw $e;
}
πŸ’¬ Support request
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine yarik.lutsiuk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024