Removing dead code in Helpers
This commit is contained in:
parent
def4dc6513
commit
f76306cc0c
1 changed files with 0 additions and 17 deletions
|
|
@ -44,21 +44,4 @@ object Helpers {
|
|||
if (next == 0) sb.toString
|
||||
else base64(next, sb)
|
||||
}
|
||||
|
||||
//FIXME docs
|
||||
def ignore[E: Manifest](body: ⇒ Unit): Unit =
|
||||
try body catch { case e if manifest[E].erasure.isAssignableFrom(e.getClass) ⇒ () }
|
||||
|
||||
//FIXME docs
|
||||
def withPrintStackTraceOnError(body: ⇒ Unit): Unit = {
|
||||
try body catch {
|
||||
case e: Throwable ⇒
|
||||
val sw = new java.io.StringWriter()
|
||||
var root = e
|
||||
while (root.getCause ne null) root = e.getCause
|
||||
root.printStackTrace(new java.io.PrintWriter(sw))
|
||||
System.err.println(sw.toString)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue