Net::STOMP::Client::Error - Error support for Net::STOMP::Client
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.
This module provides the following functions:
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
Lionel Cons http://cern.ch/lionel.cons
Copyright CERN 2010
To install Net::STOMP::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::STOMP::Client
CPAN shell
perl -MCPAN -e shell install Net::STOMP::Client
For more information on module installation, please visit the detailed CPAN module installation guide.