Record Class Failure<T>

java.lang.Object
java.lang.Record
info.jab.util.result.Failure<T>
Type Parameters:
T - the type of the value expected in a successful computation
Record Components:
exception - the exception that caused the failure
All Implemented Interfaces:
Result<T>

public record Failure<T>(Throwable exception) extends Record implements Result<T>
Record representing a failed Result in the Result.

This record encapsulates the failure state of a computation within the Result, holding an exception that caused the failure.