Lines Matching defs:e
56 * @param \Throwable $e
58 public static function fatalException($e)
60 $plugin = self::guessPlugin($e);
61 $title = hsc(get_class($e) . ': ' . $e->getMessage());
64 $logged = self::logException($e)
66 : $e->getFile() . ':' . $e->getLine();
87 * @param \Throwable $e
90 public static function showExceptionMsg($e, $intro = 'Error!')
92 $msg = hsc($intro) . '<br />' . hsc(get_class($e) . ': ' . $e->getMessage());
93 if (self::logException($e)) $msg .= '<br />More info is available in the error log.';
124 * @param \Throwable $e
127 public static function logException($e)
129 if ($e instanceof \ErrorException) {
130 $prefix = self::ERRORCODES[$e->getSeverity()];
132 $prefix = get_class($e);
136 $prefix . ': ' . $e->getMessage(),
137 $e->getTraceAsString(),
138 $e->getFile(),
139 $e->getLine()
178 * @param \Throwable $e
181 protected static function guessPlugin($e)
183 if (preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $e->getFile()), $match)) {
187 foreach ($e->getTrace() as $line) {