Interface HandlerContext.Result<T>
- Type Parameters:
T- type of the result
- All Known Implementing Classes:
HandlerContext.Result.Failure, HandlerContext.Result.Success
- Enclosing interface:
HandlerContext
public static sealed interface HandlerContext.Result<T>
permits HandlerContext.Result.Success<T>, HandlerContext.Result.Failure<T>
Result of an operation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
-
Method Details
-
getResultOrThrow
- Returns:
- the value, or throws the
TerminalExceptionof a failure. - Throws:
TerminalException
-