TReK Python
5.3.3
Telemetry/Command API
|
The TReK C++ was designed to return error codes. More...
Inherits Exception.
Public Member Functions | |
def | TrekError (error_message: str, error_code: int -> None -> def -> def ) -> def |
Class initializer. More... | |
def | __str__ ( -> str -> def -> def ) -> def |
Returns the TrekError converted to a string. More... | |
def | find_error_code ( -> str -> def -> def ) -> def |
Locate and print the text meaning of the error code. More... | |
Public Attributes | |
message | |
Trek Python error message. | |
code | |
Trek API error code. | |
The TReK C++ was designed to return error codes.
The Python implementation instead will raise TrekError exceptions containing more information and the error code. Error code values and descriptions are documented in the TReK API. print_error_code() can retrieve a text description of the code.
( | error_message | : str |