Exceptions of the CommunicationError type are raised if no connection to the Loader server can be established, or if an existing connection was broken.
They have the following format:
Communication Error: $message
Variable |
Description |
---|---|
$message |
Error message text |
You can determine the CommunicationError type of an exception by comparing it with the regular expression Communication Error: (.*).
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