Entering content frame

Function documentation Class CommunicationError Locate the document in the library structure

Use

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 an existing connection is terminated.

Attributes of the Objects of the CommunicationError Class

Name

Description

errorCode

Error code

message

Error message text

Example

You have entered an incorrect computer name (PRAMA instead of PARMA):

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

 

Leaving content frame