File Coverage

blib/lib/SyForm/Exception/OddNumberOfArgsOnCreateValuesByArgs.pm
Criterion Covered Total %
statement 4 7 57.1
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 6 11 54.5


line stmt bran cond sub pod time code
1             package SyForm::Exception::OddNumberOfArgsOnCreateValuesByArgs;
2             BEGIN {
3 1     1   1500 $SyForm::Exception::OddNumberOfArgsOnCreateValuesByArgs::AUTHORITY = 'cpan:GETTY';
4             }
5             # ABSTRACT: Exception on SyForm::Process->create_values_by_args
6             $SyForm::Exception::OddNumberOfArgsOnCreateValuesByArgs::VERSION = '0.103';
7 1     1   7 use Moo;
  1         2  
  1         6  
8             extends 'SyForm::Exception';
9              
10             with qw(
11             SyForm::Exception::Role::WithSyForm
12             );
13              
14             has process_args => (
15             is => 'ro',
16             required => 1,
17             );
18              
19             sub throw_with_args {
20 0     0 0   my ( $class, $syform, $process_args, $error ) = @_;
21 0           $class->rethrow_syform_exception($error);
22 0           $class->throw('Odd number of elements on args of create_values_by_args',
23             syform => $syform,
24             process_args => $process_args,
25             );
26             };
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =head1 NAME
35              
36             SyForm::Exception::OddNumberOfArgsOnCreateValuesByArgs - Exception on SyForm::Process->create_values_by_args
37              
38             =head1 VERSION
39              
40             version 0.103
41              
42             =head1 AUTHOR
43              
44             Torsten Raudssus <torsten@raudss.us>
45              
46             =head1 COPYRIGHT AND LICENSE
47              
48             This software is copyright (c) 2014 by Torsten Raudssus.
49              
50             This is free software; you can redistribute it and/or modify it under
51             the same terms as the Perl 5 programming language system itself.
52              
53             =cut