You are here

private function BaseApiAbstract::processErrors in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::processErrors()
  2. 8.2 api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::processErrors()
  3. 8.2 vendor/smartling/api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::processErrors()

Parameters

Response $response:

Throws

SmartlingApiException

1 call to BaseApiAbstract::processErrors()
BaseApiAbstract::sendRequest in vendor/smartling/api-sdk-php/src/BaseApiAbstract.php

File

vendor/smartling/api-sdk-php/src/BaseApiAbstract.php, line 378

Class

BaseApiAbstract
Class BaseApiAbstract

Namespace

Smartling

Code

private function processErrors(Response $response) {

  // Catch all errors from Smartling and throw appropriate exception.
  if (400 <= (int) $response
    ->getStatusCode()) {
    $this
      ->processError($response);
  }
}