5 changed files with 16 additions and 39 deletions
-
2app/helpers/StringHelper.php
-
1bootstrap.php
-
8linker.php
-
26system/MovimException.php
-
18system/widget/WidgetWrapper.php
@ -1,26 +0,0 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* \brief Movim's custom exception class. |
|||
* |
|||
* Merely adds a line break to the messages so far. Is expected to become more |
|||
* useful in the future. |
|||
*/ |
|||
class MovimException extends Exception |
|||
{ |
|||
/** |
|||
* Forces to add a message. |
|||
*/ |
|||
public function __construct($message, $code = 0) { |
|||
parent::__construct('Error: ' . $message, $code); |
|||
} |
|||
|
|||
/** |
|||
* Output proper html error reports. |
|||
*/ |
|||
function __toString() { |
|||
return $this->code . ' - ' . $this->message . '<br />'; |
|||
} |
|||
} |
|||
|
|||
?>
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue