Catalyst-ControllerRole-CatchErrors
view release on metacpan or search on metacpan
---
abstract: 'custom error handling in your controller.'
author:
- 'David Schmidt <davewood@cpan.org>'
build_requires:
Catalyst::Test: '0'
FindBin: '0'
HTTP::Exception: '0'
Test::Fatal: '0'
Test::More: '0.88'
Test::Warnings: '0'
namespace::autoclean: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.029, CPAN::Meta::Converter version 2.143240'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
Makefile.PL view on Meta::CPAN
"LICENSE" => "perl",
"NAME" => "Catalyst::ControllerRole::CatchErrors",
"PREREQ_PM" => {
"Catalyst::Runtime" => 0,
"Moose::Role" => 0
},
"TEST_REQUIRES" => {
"Catalyst::Test" => 0,
"FindBin" => 0,
"HTTP::Exception" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Test::Warnings" => 0,
"namespace::autoclean" => 0
},
"VERSION" => "0.05",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Catalyst::Runtime" => 0,
"Catalyst::Test" => 0,
"ExtUtils::MakeMaker" => 0,
"FindBin" => 0,
"HTTP::Exception" => 0,
"Moose::Role" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Test::Warnings" => 0,
"namespace::autoclean" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
[Prereqs / RuntimeRequires]
Moose::Role = 0
Catalyst::Runtime = 0
[Prereqs / TestRequires]
Test::More = 0.88
Catalyst::Test = 0
Test::Warnings = 0
namespace::autoclean = 0
FindBin = 0
Test::Fatal = 0
HTTP::Exception = 0
t/00_basic.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Test::Warnings;
use FindBin qw/$Bin/;
use lib "$Bin/lib";
use Catalyst::Test 'TestApp';
use Test::Fatal;
# action adds an error, catch_errors handles it
{
my $res = request('/');
is( $res->content, "Error:\ 'error'", 'error has been handled by catch_errors().' );
is( $res->code, 200, 'status 200' );
}
SKIP: {
skip('Special handling of HTTP::Exception errors not available if Catalyst < 5.90062', 2)
( run in 2.283 seconds using v1.01-cache-2.11-cpan-54e63673c56 )