Skip to content

Commit

Permalink
renamed hiqdev\\hiart\\ResponseErrorException <- ErrorResponseException
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 30, 2017
1 parent f933991 commit baf937a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use hipanel\modules\server\models\Osimage;
use hipanel\modules\server\models\Server;
use hipanel\modules\server\models\ServerUseSearch;
use hiqdev\hiart\ErrorResponseException;
use hiqdev\hiart\ResponseErrorException;
use hiqdev\yii2\cart\actions\AddToCartAction;
use Yii;
use yii\base\Event;
Expand Down Expand Up @@ -377,7 +377,7 @@ public function actions()
* @param Server $model
* @param bool $enable
* @return array
* @throws ErrorResponseException
* @throws ResponseErrorException
*/
public function getVNCInfo($model, $enable = false)
{
Expand All @@ -386,7 +386,7 @@ public function getVNCInfo($model, $enable = false)
try {
$vnc = ArrayHelper::merge($vnc, Server::perform('enable-VNC', ['id' => $model->id]));
$vnc['enabled'] = true;
} catch (ErrorResponseException $e) {
} catch (ResponseErrorException $e) {
if ($e->getMessage() !== 'vds_has_tasks') { // expected error, that could be skipped
throw $e;
}
Expand Down

0 comments on commit baf937a

Please sign in to comment.