123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- /**
- *
- * Cube Framework $Id$ qLQIVYEPb5XLSNvNUpX0AF3fYgM0c1FJQsFBpYF0z3E=
- *
- * @link http://codecu.be/framework
- * @copyright Copyright (c) 2015 CodeCube SRL
- * @license http://codecu.be/framework/license Commercial License
- *
- * @version 1.4
- */
- /**
- * exceptions class
- */
- namespace Cube;
- /**
- * Class Exception
- *
- * @package Cube
- */
- class Exception extends \Exception
- {
- /**
- *
- * construct the exception
- *
- * @param string $message
- * @param int $code
- * @param \Exception $previous
- */
- public function __construct($message = null, $code = null, $previous = null)
- {
- parent::__construct($message, (int)$code, $previous);
- }
- /**
- *
- * display the exception
- *
- * @return string
- */
- public function display()
- {
- return '<div class="alert alert-danger">[Cube\Exception]<br> ' . $this->message . '</div>';
- }
- }
|