- asRuntime
Casts or wraps the given exception to be a RuntimeException. If the input
exception is a RuntimeExce
- log
Logs any exceptions. By default, log() calls Throwable.printStackTrace(). To
modify this behavior in
- rethrow
Rethrows any exceptions as runtime exceptions.
- createHandling
Creates an Errors.Handling which passes any exceptions it receives to the given
handler. The handler
- wrap
Returns a Runnable whose exceptions are handled by this Errors.
- accept
Passes the given error to this Errors.
- suppress
Suppresses errors entirely.
- constrainTo
A fluent API for calling functions which throw an overly-broad exception (e.g.
Throwable, Exception)
- createRethrowing
Creates an Errors.Rethrowing which transforms any exceptions it receives into a
RuntimeException as
- resetForTesting
Package-private for testing - resets all of the static member variables.