1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/lib/Minz/ExtensionException.php

16 lines
456 B
PHP
Raw Normal View History

2015-02-08 18:55:48 +01:00
<?php
class Minz_ExtensionException extends Minz_Exception {
public function __construct ($message, $extension_name = false, $code = self::ERROR) {
if ($extension_name) {
$message = 'An error occured in `' . $extension_name
. '` extension with the message: ' . $message;
} else {
$message = 'An error occured in an unnamed '
. 'extension with the message: ' . $message;
}
parent::__construct($message, $code);
}
}