Module com.machinezoo.noexception
Package com.machinezoo.noexception
Classes implementing all NoException features. Class
Exceptions
is the entry point to NoException functionality. After picking one of its predefined exception handlers and possibly calling ExceptionHandler.passing()
, you pass your code as a lambda to the appropriate method of ExceptionHandler
, ExceptionFilter
, or CheckedExceptionHandler
.
Typical usage: Exceptions.log().get(() -> my_throwing_lambda).orElse(fallback)
- See Also:
- NoException tutorial
-
Interface Summary Interface Description CloseableScope Deprecated. UseCloseableScope
from dedicated library instead. -
Class Summary Class Description CheckedExceptionHandler Represents downgrading policy for checked exceptions.ExceptionFilter Represents exception handling policy that always ends with throwing another exception.ExceptionHandler Represents exception handling policy.Exceptions Static methods for creating predefined exception handlers. -
Exception Summary Exception Description WrappedException Deprecated. UseUndeclaredThrowableException
instead.