File Coverage

blib/lib/Articulate/Error/NotFound.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Articulate::Error::NotFound;
2 9     9   3799 use strict;
  9         14  
  9         281  
3 9     9   52 use warnings;
  9         11  
  9         199  
4              
5 9     9   35 use Moo;
  9         9  
  9         40  
6             extends 'Articulate::Error';
7              
8             =head1 NAME
9              
10             Articulate::Error::NotFound - represent an error indicating the requested content does not exist.
11              
12             =cut
13              
14             =head3 DESCRIPTION
15              
16             This class extends Articulate::Error and merely sets two default values:
17              
18             =head3 simple_message
19              
20             This defaults to C<'Not Found'>.
21              
22             =head3 http_code
23              
24             This defaults to C<404>.
25              
26             =cut
27              
28             has '+simple_message' =>
29             default => 'Not found';
30              
31             has '+http_code' =>
32             default => 404;
33              
34             1;