Result¶
Result Class¶
- class gs_interactive.client.result.Result(status: Status, value: T)[source]¶
This is a generic class that wraps the result of an operation, It contains the status of the operation and the value returned by the operation.
- __init__(status: Status, value: T)[source]¶
Construct a new Result object with the specified status and value.
- Parameters:
status – the status of the operation.
value – the value returned by the operation.
- static from_exception(exception: ApiException)[source]¶
A static method create a Result object from an ApiException.