Exception.php 625 B

12345678910111213141516171819202122232425262728
  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\base;
  8. /**
  9. * Exception represents a generic exception for all purposes.
  10. *
  11. * For more details and usage information on Exception, see the [guide article on handling errors](guide:runtime-handling-errors).
  12. *
  13. * @author Qiang Xue <qiang.xue@gmail.com>
  14. * @since 2.0
  15. */
  16. class Exception extends \Exception
  17. {
  18. /**
  19. * @return string the user-friendly name of this exception
  20. */
  21. public function getName()
  22. {
  23. return 'Exception';
  24. }
  25. }