yii\db\Exception::getName PHP Method

getName() public method

public getName ( ) : string
return string the user-friendly name of this exception
    public function getName()
    {
        return 'Database Exception';
    }