Articulate/Error/AlreadyExists.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Articulate/Enrichment/DateUpdated.pm ↑ Summary Articulate/Error/BadRequest.pm »
1 package Articulate::Error::AlreadyExists;
2 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 11 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 11 extends 'Articulate::Error';
7  
8 =head1 NAME
9  
10 Articulate::Error::AlreadyExists - represent an error arising from an attempt to create content which already exists
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<'Already exists'>.
21  
22 =head3 http_code
23  
24 This defaults to C<409>. This code is shared with other errors which reflect conflicting actions taken on resources.
25  
26 =cut
27  
28 11 has '+simple_message' => ( default => 'Already exists', );
29  
30 11 has '+http_code' => ( default => 409, );
31  
32 11 1;
« Articulate/Enrichment/DateUpdated.pm ↑ Summary Articulate/Error/BadRequest.pm »