Exceptions of the CommunicationError class are triggered if it is not possible to connect to the Loader Server or if an existing connection is closed.
Instances of the CommunicationError class have the following attributes:
Attribute |
Description |
errorCode |
Error code |
message |
Error message text |
The Loader server to which you are trying to connect does not exist.
try:
session =
sapdb.loader.Loader ('unknownhost', '')
except sapdb.loader.CommunicationError, err:
print err
print
err.message
loader.CommunicationError: [-4] unknown host
name
unknown host name