Rose::HTML::Object::Error - Error object.
$error = Rose::HTML::Object::Error->new(id => MY_ERROR);
Rose::HTML::Object::Error objects encapsulate an error with integer id and an
optional associated message object.
This class inherits from, and follows the conventions of,
Rose::Object. See the Rose::Object documentation for more information.
Stringification is overloaded to the stringification of the message object. In
numeric and boolean contexts, Rose::HTML::Object::Error objects always
evaluate to true.
- new [PARAMS]
- Constructs a new Rose::HTML::Object::Error object based on PARAMS
name/value pairs. Any object method is a valid parameter name.
- id [INT]
- Get or set the error's integer identifier.
- "message [MESSAGE]"
- Get or set the Rose::HTML::Object::Message-derived message object
associated with this error.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is
free software; you can redistribute it and/or modify it under the same terms
as Perl itself.