CatalystX::Controller::Sugar::ActionPack::Error - Action for error pages


CatalystX-Controller-Sugar-ActionPack documentation  | view source Contained in the CatalystX-Controller-Sugar-ActionPack distribution.

Index


NAME

Top

CatalystX::Controller::Sugar::ActionPack::Error - Action for error pages

DESCRIPTION

Top

Used to server custom error pages, which the webapp dispatch to.

VARIABLES

Top

%ERROR_STATUS

This hash holds a mapping between the error template and the response status. See the source code for a sample of default templates.

ACTIONS

Top

Endpoint /error/*

 go '/error' => [$template, $message];

Show error message, and set HTTP response status. Supported status: See %ERROR_STATUS.

Affected stash variables:

 {
   template => "error/$template.tt",
   title => "error - $status_code",
   error_message => $message,
 }

LICENSE

Top

AUTHOR

Top

See CatalystX::Controller::Sugar::ActionPack.


CatalystX-Controller-Sugar-ActionPack documentation  | view source Contained in the CatalystX-Controller-Sugar-ActionPack distribution.