Exceptions of the class CommunicationError are raised if no connection can be made to the Loader Server, or if an existing connection has been broken.
Instances of the class CommunicationError have the following attributes:
Attribute |
Description |
errorCode |
Error code |
message |
Text of the error message |
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
Output:
loader.CommunicationError: [-4] unknown host name
unknown host name