error message for non-passing case
Returns the value if the
Result is successful. Throws an assertion error if not.
The value if the
Result is successful.
If there is an error in the result, it throws an assertion error with the given message.
The message to be displayed if the
Result has failed.
Generated using TypeDoc
This module contains the 'Result' class, which represents wrapper for a value that can be either a success or an error.
The 'Result' class provides methods to unwrap the value, expect a value or isOk or isErr to check if the result is successful.