You are here

public function KalturaClientBase::throwExceptionIfError in Kaltura 6.2

* Validate the result object and throw exception if its an error * *

Parameters

object $resultObject:

File

kaltura_client/KalturaClientBase.php, line 306

Class

KalturaClientBase

Code

public function throwExceptionIfError($resultObject) {
  if ($this
    ->isError($resultObject)) {
    throw new KalturaException($resultObject["message"], $resultObject["code"]);
  }
}