This maps error return codes to the corresponding python exception. More...
Functions | |
def | handleReturnCode |
Given a VNA-DLL return code, raise the corresponding python exception if the return-code is not ERR_OK. More... | |
Variables | |
dictionary | Exception_Map |
This maps error return codes to the corresponding python exception.
def VNA.vnalibrary.handleReturnCode | ( | code, | |
message = "" |
|||
) |
Given a VNA-DLL return code, raise the corresponding python exception if the return-code is not ERR_OK.
One of the child-classes of VNA_Exception as dictated by the value of code
(if code
corresponds to an exception).
Otherwise, it simply returns with no exception thrown.
code | The return code from a DLL-call. |
message | Optional, description added to raised exception. |
dictionary Exception_Map |