(message: string)
| 28 | * @returns An `Error` object. |
| 29 | */ |
| 30 | export function error(message: string): Error { |
| 31 | return { success: false, message }; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Obtains the value associated with a successful `Result<T>` or throws an exception if |
no outgoing calls
no test coverage detected