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


Rose-HTML-Objects documentation  | view source Contained in the Rose-HTML-Objects distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

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

Top

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

Top

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

Top

John C. Siracusa (siracusa@gmail.com)

LICENSE

Top

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.


Rose-HTML-Objects documentation  | view source Contained in the Rose-HTML-Objects distribution.