Example #1
0
 public static function throwException($message, $code = Logger::L_ERROR, \Exception $previous = null)
 {
     $e = new Exception($message, $code, $previous);
     $e->setThrower($previous instanceof Exception && $previous->getThrower() ? $previous->getThrower() : Logger::getSenderName(get_called_class()));
     throw $e;
 }