- 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)
- dialog
Opens a dialog to notify the user of any exceptions. It should be used in cases
where an error is to
- resetForTesting
Package-private for testing - resets all of the static member variables.