We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393c882 commit 0c25601Copy full SHA for 0c25601
fproject/rest/IndexAction.php
@@ -20,9 +20,9 @@
20
namespace fproject\rest;
21
22
use Yii;
23
-use yii\base\InvalidParamException;
24
use yii\db\ActiveQuery;
25
use yii\helpers\Json;
+use yii\web\BadRequestHttpException;
26
27
/**
28
* IndexAction implements the API endpoint for viewing (listing) model(s).
@@ -79,7 +79,7 @@ protected function prepareDataProvider()
79
}
80
else
81
{
82
- throw new InvalidParamException("Condition definition(s) not found: ".implode(',', $conditionKeys));
+ throw new BadRequestHttpException("Condition definition(s) not found: ".implode(',', $conditionKeys));
83
84
85
0 commit comments