Status¶
Status Class¶
- class gs_interactive.client.status.Status(status: <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object at 0x7f2416dc7df0>, message: str)[source]¶
This class represents the status of an operation. It contains the status code and the message.
- __init__(status: <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object at 0x7f2416dc7df0>, message: str)[source]¶
Construct a new Status object with the specified status code and message.
- Parameters:
status (StatusCode) – the returnd code of the operation.
message (str) – the message returned by the operation.
- static from_exception(exception: ApiException)[source]¶
Create a Status object from an ApiException.
- property get_message¶
Get the message returned by the operation.