Exception.php 539 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\mongodb;
  8. /**
  9. * Exception represents an exception that is caused by some Mongo-related operations.
  10. *
  11. * @author Paul Klimov <klimov.paul@gmail.com>
  12. * @since 2.0
  13. */
  14. class Exception extends \yii\base\Exception
  15. {
  16. /**
  17. * @return string the user-friendly name of this exception
  18. */
  19. public function getName()
  20. {
  21. return 'MongoDB Exception';
  22. }
  23. }