EncodableResult
Functions
Link copied to clipboard
fun applyExceptionDetailsConfiguration(configuration: WrappedException.DetailsConfiguration): EncodableResult<T>
Applies a configuration to modify the details of the associated failure, if present. The configuration defines which exception details (e.g., stack trace, message, etc.) should be included or excluded.
Link copied to clipboard
Returns the value if it is present, otherwise returns the specified defaultValue.
Link copied to clipboard
Throws the exception if the result is a failure and returns the result in the opposite situation.
Link copied to clipboard
Executes the given action if the result is a failure.
Link copied to clipboard
Converts the current EncodableResult instance into a Kotlin Result type. If the EncodableResult represents a success, a successful Result is returned containing the value. If the EncodableResult represents a failure, a failed Result is returned containing the exception.