Net::STOMP::Client::Error.3pm

Langue: en

Version: 2010-03-01 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Net::STOMP::Client::Error - Error support for Net::STOMP::Client

DESCRIPTION

This module provides error support for Net::STOMP::Client.

All the functions and methods that can fail use this module to report errors (using Net::STOMP::Client::Error::report()) and then they return an undefined value. They also try to return true on success but this is not always possible as sometimes zero is a possible return value.

By default, errors are fatal and get reported via die().

If $Net::STOMP::Client::Error::Die is false, die() is not used and it is up to the caller to check the returned value to detect an error (by checking if the returned value is defined). The caller can then retrieve the last error message which is always stored in $Net::STOMP::Client::Error::Message.

AUTHOR

Lionel Cons <http://cern.ch/lionel.cons>