php – Exception not able to get caught in catch block – Yii2

Exception

Exception ‘Error’ with message ‘Class ‘appcommandsCallLogs’ not
found’

is not able to get caught in catch block.

Code:

I tried with calling undefined class just to see how and what exception catch block catches.

public function actionTest(){
    try {
        $logs = new CallLogs();
    } catch (yiibaseException $ex) {
        print $ex->getMessage();
    } catch(ErrorException $ex){
        print $ex->getMessage();
    }
}

But, When I intentionally throw any exception, it works.

public function actionTest(){
    try {
        throw new yiibaseException('hello');
    } catch (yiibaseException $ex) {
        print $ex->getMessage();
    } catch(ErrorException $ex){
        print $ex->getMessage();
    }
}

I have tried with baseException class and ErrorException class. But, no help.

Any help/hint is appreciable