The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

FUNCTIONS

This module provides the following functions:

report(FORMAT[, ARGUMENTS])

format the error message using sprintf() and store the result in $Net::STOMP::Client::Error::Message; if $Net::STOMP::Client::Error::Die is true, use die() to report the error

AUTHOR

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

Copyright CERN 2010