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)
279 } catch (ExceptionNotFound $e) {
284 throw new LogException($message, $level, $e);
338 * @param \Exception|null $e the original exception for trace chaining
341 public static function error(string $message, string $canonical = self::SUPPORT_CANONICAL, \Exception $e = null)
343 self::msg($message, LogUtility::LVL_MSG_ERROR, $canonical, $e);
346 public static function warning(string $message, string $canonical = "support", \Exception $e = null)
348 self::msg($message, LogUtility::LVL_MSG_WARNING, $canonical, $e);
351 public static function info(string $message, string $canonical = "support", \Exception $e = null)
353 self::msg($message, LogUtility::LVL_MSG_INFO, $canonical, $e);
412 * @param $e
416 public static function debug(string $message, string $canonical = self::SUPPORT_CANONICAL, $e = null)
418 self::msg($message, LogUtility::LVL_MSG_DEBUG, $canonical, $e);