NAME
Device::Firmata::Error - error reporting
DESCRIPTION
Intendend for module internal error reporting.
Implementation Status: experimental, unused
METHODS
error
The base error reporting system. All errors will be stored in this object until the error flush code is called. This will allow the system to collect all errors that occur in various parts of the system in one place. Very useful for error reporting since it's a simple call to find out the last error.
Invocation of this function
$err->error( [numerical error level], ErrorMessage, ... parameters ... );
ErrorMessage can be in the format "KEY" that will be referenced by Device::Firmata::Base->language or "KEY:Message" where if ->language does not map to anything, the error will default to Message