SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
script.error Namespace Reference

Error related items. More...

Classes

class  BlankTAGException
 Exception thrown when a TAG is blank. More...
 
class  MalformedLogCallException
 Exception thrown when a Log call is malformed. More...
 
class  MalformedTAGDefinitionException
 Exception thrown when a TAG definition is malformed. More...
 
class  OutOfRangeException
 Exception thrown when there are no more values that can be allocated to a type. More...
 
class  ScriptException
 Base Exception for this script. More...
 
class  TAGIDMismatchException
 Exception thrown when obtaining a mapped pair results in mismatched values. More...
 

Functions

Exception|str error_to_string (Exception error)
 Split exception into string if it is a ScriptException, else, return the exception.
 

Detailed Description

Error related items.

Function Documentation

◆ error_to_string()

Exception | str script.error.error_to_string ( Exception  error)

Split exception into string if it is a ScriptException, else, return the exception.

Args: error (Exception): Exception to interpret

Returns: Exception | str: Result

Definition at line 43 of file error.py.