Builder

public interface Builder<T extends Exception> implements Result.Builder<RT, AT, TT, ET, BT>(source)

A builder for results of throwable calls.

Parameters

<T>

the type of the expected exception

Inheritors

Types

Link copied to clipboard
public interface Factory<T extends Exception> implements Result.Builder.Factory<RT, AT, TT, ET, BT>

Functions

Link copied to clipboard
public abstract BT actual(AT actual)
Sets the actual behavior of the result.
public ResultOfExceptionalCall.Builder<T> actual(T exception, boolean successful)
Set the actual exception of the correct type and if this exception fulfils the expected throwable.
Link copied to clipboard
public abstract RT build()
Builds a result for the given properties and returns it.
Link copied to clipboard
public abstract BT exception(Throwable exception)
Sets the exception of the result.
Link copied to clipboard
public abstract BT test(TT test)
Sets the test of the result.