Uses of Interface
org.tquadrat.foundation.lang.ErrorHandler
Packages that use ErrorHandler
Package
Description
Some general language extensions provided by the Foundation
Library.
-
Uses of ErrorHandler in org.tquadrat.foundation.lang
Methods in org.tquadrat.foundation.lang with parameters of type ErrorHandlerModifier and TypeMethodDescriptionfinal V
Status.getOrElseThrow
(ErrorHandler<? super C> errorHandler) Returns the result in case of a success, otherwise executes the given error handler and throws the exception determined by it.final void
Status.onSuccess
(Consumer<? super V> action, ErrorHandler<? super C> errorHandler) Performs the given action on success, otherwise throws the exception determined by the error handler.final <R> R
Status.onSuccess
(Function<? super V, R> conversion, ErrorHandler<? super C> errorHandler) Performs the given conversion on success, otherwise throws the exception determined by the error handler.