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

NAME

Rose::HTML::Object::Error - Error object.

SYNOPSIS

  $error = Rose::HTML::Object::Error->new(id => MY_ERROR);

DESCRIPTION

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.

OVERLOADING

Stringification is overloaded to the stringification of the message object. In numeric and boolean contexts, Rose::HTML::Object::Error objects always evaluate to true.

CONSTRUCTOR

new [PARAMS]

Constructs a new Rose::HTML::Object::Error object based on PARAMS name/value pairs. Any object method is a valid parameter name.

OBJECT METHODS

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.

AUTHOR

John C. Siracusa (siracusa@gmail.com)

LICENSE

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.