Entering content frame

Background documentation Exception CommunicationError Locate the document in the library structure

Exceptions of the type CommunicationError are raised if no connection can be made to the Structure linkLoader Server, or if an existing connection has been broken.

They have the following format:

Communication Error: $message

message

Text of the error message

You can determine the CommunicationError type of an exception by comparing it with the regular expression Communication Error: (.*).

Example

The Loader Server to which you are trying to connect does not exist:

eval { $session = new Loader ('unknownhost', '');}
if ($@) {
    print "$@\n";
}

Output:

Communication Error: unknown host name

 

Leaving content frame