CommunicationError is a class of the sdb.loader module. The methods of the sdb.loader module trigger exceptions of this class if it is not possible to connect to the Loader server or an existing connection is terminated.
Name |
Description |
---|---|
errorCode |
Error code |
message |
Error message text |
You have entered an incorrect computer name (PRAMA instead of PRAMA):
Syntax
try: session = sdb.loader.Loader ('PRAMA', '') except sdb.loader.CommunicationError, err: print err print err.message
loader.CommunicationError: [-4] unknown host name
unknown host name