error_handling
¶
Module Contents¶
Functions¶
|
Example to for handling protocol exceptions. |
-
error_handling.
example
(args)¶ Example to for handling protocol exceptions.
The errors are described in the protobuf protocol definition of the errors.
This example tries to set an invalid ScanPattern and a protocol exception will be raised and catched.
- Parameters
args – arguments to parse out the host name or IP address of the device
-
error_handling.
parser
¶