Exception::Class::Nested - Nested declaration of Exception::Class classes


Exception-Class-Nested documentation  | view source Contained in the Exception-Class-Nested distribution.

Index


NAME

Top

Exception::Class::Nested - Nested declaration of Exception::Class classes

SYNOPSIS

Top

	use Exception::Class::Nested (
		'MyException' => {
			description => 'This is mine!',

			'YetAnotherException' => {
				description => 'These exceptions are related to IPC',

				'ExceptionWithFields' => {
					fields => [ 'grandiosity', 'quixotic' ],
					alias => 'throw_fields',
					full_message => sub {
						my $self = shift;
						my $msg = $self->message;
						$msg .= " and grandiosity was " . $self->grandiosity;
						return $msg;
					}
				}
			}
		},
	);

DESCRIPTION

Top

This is little more than a thin wrapper around the use Exception::Class call. It allows you do nest the class declarations instead of having to repeat the class names in the isa=> parameters. It also allows you to define/overload methods in the classes.

SUPPORT

Top

Please submit bugs to the CPAN RT system at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Exception%3A%3AClass%3A%3ANested or via email at bug-exception-class-nested@rt.cpan.org.

AUTHOR

Top

Jenda Krynicky, <jenda@krynicky.cz>

COPYRIGHT

Top


Exception-Class-Nested documentation  | view source Contained in the Exception-Class-Nested distribution.