generic_usecase library
Small component that encapsulates an application's scenario logic.
Classes
- ConditionsResult
-
NoParamsStreamUsecase<
Output> -
A stream usecase that does not require any params, but returns a
stream of
Output
. -
NoParamsUsecase<
Output> -
A usecase that does not require any params, but returns a result of type
Output
. -
StreamUsecase<
Input, Output> -
A stream usecase that requires params of type
Input
and returns a stream ofOutput
. -
Usecase<
Input, Output> -
A usecase that requires params of type
Input
and returns a result of typeOutput
.
Mixins
-
ConditionsObserver<
Input, Output> - A mixin that allows to check preconditions and postconditions of a use case.
-
ExceptionObserver<
Output> - A mixin that allows to handle exceptions
-
UsecaseExecutor<
Input, Output> -
UsecaseStreamExecutor<
Input, Output>
Exceptions / Errors
- InvalidPostconditionsException
- InvalidPostconditionsException is threw when the postconditions of a Usecase are not met.
- InvalidPreconditionsException
- InvalidPreconditionsException is threw when the preconditions of a Usecase are not met.
- StreamUsecaseException
- StreamUsecaseException is sometimes threw by Stream Usecases operations.
- UsecaseException
- UsecaseException is sometimes threw by Usecases operations.