NAME

Catalyst::Action::RenderView::ErrorHandler::Action - A Role for any actions that want to react to errors.

VERSION

version 0.100166

SYNOPSIS

use Moose;

with 'Catalyst::Action::RenderView::ErrorHandler::Action';

REQUIRED METHODS

perform

This method need to be implemented by consuming classes.

It will be called with $context, and thus makes it possible to access $context->errors for instance, include them in an email or whatnot

INHERITED METHODS

meta

Inherited from Moose

DESCRIPTION

A Role that should be consumed by actions that are implemented

ATTRIBUTES

id

Unique name for this action. It is used when refering actions from handlers

ignore_path

This allows you to set a regexp that we match against the request path. It comes in handy if your server is targeted by some php exploit nastyness, and you don't want to (for instance) email everyone every time someone tries to bruteforce.

METHODS

ignore $path

Called before the action is performed to check if we should ignore this action this time or not. Returns true if the action should be ignored (skipped)

AUTHOR

Andreas Marienborg <andremar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Andreas Marienborg.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.