* * @copyright Olivier Paroz 2017 */ namespace OCA\Gallery\Environment; use OCP\Util; /** * Thrown when the Environment runs into a problem */ class EnvironmentException extends \Exception { /** * Constructor * * @param string $msg the message contained in the exception */ public function __construct($msg) { Util::writeLog('gallery', 'Exception' . $msg, Util::ERROR); parent::__construct($msg); } }