mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
26 lines
492 B
PHP
Executable file
26 lines
492 B
PHP
Executable file
<?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 />';
|
|
}
|
|
}
|
|
|
|
?>
|