You are here

protected function LockrRenewForm::handleException in Lockr 4.x

Logs details about the given exception.

Parameters

LockrApiException $e: The Lockr exception.

1 call to LockrRenewForm::handleException()
LockrRenewForm::submitForm in src/Form/LockrRenewForm.php
Form submission handler.

File

src/Form/LockrRenewForm.php, line 369

Class

LockrRenewForm
Form handler for Lockr renew cert.

Namespace

Drupal\lockr\Form

Code

protected function handleException(LockrApiException $e) {
  $this->logger
    ->error('Lockr error occurred [{exc_code}]: {exc_msg}', [
    'exc_code' => $e
      ->getCode(),
    'exc_msg' => $e
      ->getMessage(),
  ]);
}