Anfang des Inhaltsbereichs

 Perl: Exception-Klassen 

Eine Exception ist ein String, der entweder mit CommunicationError oder mit LoaderServError beginnt.

LoaderServError: 25011 SQL error -3005 = Invalid SQL Statement

Beispiel für die Verwendung im Skript::

eval {$session->cmd ('complete nonsense;') };
if ($@) { print "command failed: $@\n"; }

Printausgabe:

command failed: LoaderServError: 25011 SQL error -3005 = Invalid SQL Statement

Ende des Inhaltsbereichs