Background documentationCommunicationError Class (dbm Module) Locate this document in the navigation structure

 

Exceptions of the CommunicationError type are raised if no connection to the DBM 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: (.*).

Example

The DBM server to which you are trying to connect does not exist:

eval { $session = new DBM ('unknownhost', '');}

if ($@) {

print "$@\n";

}

Output:

Communication Error: unknown host name