Skip to content

Commit f3cd055

Browse files
authored
Update RequestTrait.php
1 parent 3109ae8 commit f3cd055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/RequestTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ protected function processResponse($service, $method, $response, $resultClass)
260260

261261
$msg = 'YDB ' . $service . ' ' . $method . ' (YDB_' . $statusCode . ' ' . $statusName . '): ' . $message;
262262
if (isset(self::$ydbExceptions[$statusCode]) && class_exists(self::$ydbExceptions[$statusCode])) {
263-
if (!class_exists(self::$ydbExceptions[$status->code])){
264-
$this->logger->error("Class ".self::$ydbExceptions[$status->code]." not found");
263+
if (!class_exists(self::$ydbExceptions[$statusCode])){
264+
$this->logger->error("Class ".self::$ydbExceptions[$statusCode]." not found");
265265
throw new \Exception($message);
266266
}
267267
throw new self::$ydbExceptions[$statusCode]($msg);

0 commit comments

Comments
 (0)