You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatedefrethrowRuntime(e: Throwable):Object= {
valcause= e.getCause
cause match {
caseexception: RuntimeException=>throw exception
case _ =>thrownewRuntimeException(cause)
}
}
You'll note that we're doing getCause twice here. I'm not sure that this is actually correct, since it would seem to mask the inner exception. Poking @retronym for clarification. I can definitely confirm that, when this code path is hit, the exception it generates is very unhelpful and does not contain the initial cause.
The text was updated successfully, but these errors were encountered:
Specifically, note the following:
And then in
rethrowRuntime
:You'll note that we're doing
getCause
twice here. I'm not sure that this is actually correct, since it would seem to mask the inner exception. Poking @retronym for clarification. I can definitely confirm that, when this code path is hit, the exception it generates is very unhelpful and does not contain the initial cause.The text was updated successfully, but these errors were encountered: