CExceptionEvent.php 785 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * CExceptionEvent class file.
  4. *
  5. * @author Qiang Xue <qiang.xue@gmail.com>
  6. * @link http://www.yiiframework.com/
  7. * @copyright 2008-2013 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. /**
  11. * CExceptionEvent represents the parameter for the {@link CApplication::onException onException} event.
  12. *
  13. * @author Qiang Xue <qiang.xue@gmail.com>
  14. * @package system.base
  15. * @since 1.0
  16. */
  17. class CExceptionEvent extends CEvent
  18. {
  19. /**
  20. * @var CException the exception that this event is about.
  21. */
  22. public $exception;
  23. /**
  24. * Constructor.
  25. * @param mixed $sender sender of the event
  26. * @param CException $exception the exception
  27. */
  28. public function __construct($sender,$exception)
  29. {
  30. $this->exception=$exception;
  31. parent::__construct($sender);
  32. }
  33. }