Class yii\mongodb\Exception

Inheritanceyii\mongodb\Exception » yii\base\Exception
Available since extension's version2.0
Source Code https://github.com/yiisoft/yii2-mongodb/blob/master/src/Exception.php

Exception represents an exception that is caused by some Mongo-related operations.

Public Methods

Hide inherited methods

Method Description Defined By
getName() yii\mongodb\Exception

Method Details

Hide inherited methods

getName() public method

public string getName ( )
return string

The user-friendly name of this exception

                public function getName()
{
    return 'MongoDB Exception';
}