Lines Matching defs:e

79     public static function msg(string $message, int $level = self::LVL_MSG_ERROR, string $canonical = "support", \Exception $e = null)
84 } catch (ExceptionCompile $e) {
85 self::log2file($e->getMessage(), LogUtility::LVL_MSG_ERROR, $canonical);
106 self::log2file($message, $level, $canonical, $e);
112 self::throwErrorIfTest($level, $message, $e);
124 * @param \Exception $e
126 static function log2file(?string $msg, int $logLevel = self::LVL_MSG_ERROR, $canonical = null, \Exception $e = null)
131 } catch (ExceptionCompile $e) {
132 $msg = $e->getMessage();
164 self::throwErrorIfTest($logLevel, $msg, $e);
182 } catch (ExceptionCompile $e) {
183 $message = $e->getMessage();
271 * @param $e - the original exception for chaining
274 private static function throwErrorIfTest($level, $message, \Exception $e = null)
282 throw new LogException($message, $level, $e);
335 * @param \Exception|null $e the original exception for trace chaining
338 public static function error(string $message, string $canonical = self::SUPPORT_CANONICAL, \Exception $e = null)
340 self::msg($message, LogUtility::LVL_MSG_ERROR, $canonical, $e);
343 public static function warning(string $message, string $canonical = "support", \Exception $e = null)
345 self::msg($message, LogUtility::LVL_MSG_WARNING, $canonical, $e);
348 public static function info(string $message, string $canonical = "support", \Exception $e = null)
350 self::msg($message, LogUtility::LVL_MSG_INFO, $canonical, $e);
409 * @param $e
413 public static function debug(string $message, string $canonical = self::SUPPORT_CANONICAL, $e = null)
415 self::msg($message, LogUtility::LVL_MSG_DEBUG, $canonical, $e);