CommunicationError is a class of the sdb.dbm module. The methods of the sdb.dbm module trigger exceptions of this class if it is not possible to connect to the DBM server or if 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.dbm.DBM ('PRAMA', '') except sdb.dbm.CommunicationError, err: print err print err.message
dbm.CommunicationError: [-4] unknown host name
unknown host name