TReK Python  5.3.3
Telemetry/Command API
TrekError Class Reference

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.
 

Detailed Description

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.

Note
print_error_code() Locates and prints the code meaning and would impact performance in a fault tolerate implementation.

Constructor & Destructor Documentation

◆ TrekError()

(error_message : str