Function documentationCommunicationError Class (sdb.loader Module) Locate this document in the navigation structure

 

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.

CommunicationError Class: Attributes of its Objects

Name

Description

errorCode

Error code

message

Error message text

Example

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

Syntax Syntax

  1. try:
      session = sdb.loader.Loader ('PRAMA', '')
    except sdb.loader.CommunicationError, err:
      print err
      print err.message
    
End of the code.

loader.CommunicationError: [-4] unknown host name

unknown host name