You are here

private function BaseApiAbstract::processErrors in TMGMT Translator Smartling 8.2

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

Parameters

Response $response:

Throws

SmartlingApiException

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

File

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

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);
  }
}