File Coverage

blib/lib/SyForm/Exception/UnknownArgOnCreateValuesByArgs.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::UnknownArgOnCreateValuesByArgs;
2             BEGIN {
3 1     1   948 $SyForm::Exception::UnknownArgOnCreateValuesByArgs::AUTHORITY = 'cpan:GETTY';
4             }
5             # ABSTRACT: Unknown arg on SyForm::Process->create_values_by_args
6             $SyForm::Exception::UnknownArgOnCreateValuesByArgs::VERSION = '0.103';
7 1     1   7 use Moo;
  1         2  
  1         5  
8             extends 'SyForm::Exception';
9              
10             with qw(
11             SyForm::Exception::Role::WithSyForm
12             );
13              
14             has arg => (
15             is => 'ro',
16             required => 1,
17             );
18              
19             sub throw_with_args {
20 0     0 0   my ( $class, $syform, $arg ) = @_;
21 0           my $ref = ref $arg;
22 0           $class->throw('Unknown arg of ref "'.$ref.'" on create_values_by_args',
23             syform => $syform,
24             arg => $arg,
25             );
26             };
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =head1 NAME
35              
36             SyForm::Exception::UnknownArgOnCreateValuesByArgs - Unknown arg 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