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
Try.of() currently catches all exceptions and rethrows them if fatal in a wrapper exception. The wrapper for fatal exceptions is javaslang.control.Try.FatalException, which extends java.lang.RuntimeException, this way it changes exception categories and softens Errors (possibly java.lang.VirtualMachineError and subclasses) to RuntimeExceptions.
The text was updated successfully, but these errors were encountered:
nfekete
changed the title
Try.of() shouldn't soften exceptions by change exception class for rethrown (fatal) exceptions
Try.of() shouldn't soften exceptions by changing exception category for rethrown (fatal) exceptions
Apr 25, 2017
Try.of()
currently catches all exceptions and rethrows them if fatal in a wrapper exception. The wrapper for fatal exceptions isjavaslang.control.Try.FatalException
, which extendsjava.lang.RuntimeException
, this way it changes exception categories and softensError
s (possiblyjava.lang.VirtualMachineError
and subclasses) toRuntimeException
s.The text was updated successfully, but these errors were encountered: