Failure
Represents a failure result in the context of a result model.
This class is a concrete implementation of the Result
sealed interface, specifically used to represent a failure case. It contains an error message that can be used to describe the failure or provide additional context about the error.
Parameters
TResult
The type parameter representing the type of the result in successful cases.