File Coverage

blib/lib/SyForm/Exception/UnknownErrorOnCreateValuesByArgs.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::UnknownErrorOnCreateValuesByArgs;
2             BEGIN {
3 1     1   953 $SyForm::Exception::UnknownErrorOnCreateValuesByArgs::AUTHORITY = 'cpan:GETTY';
4             }
5             # ABSTRACT: Exception on SyForm::Process->create_values_by_args
6             $SyForm::Exception::UnknownErrorOnCreateValuesByArgs::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             SyForm::Exception::Role::WithOriginalError
13             );
14              
15             has args => (
16             is => 'ro',
17             required => 1,
18             );
19              
20             sub throw_with_args {
21 0     0 0   my ( $class, $syform, $args, $original_error ) = @_;
22 0           $class->rethrow_syform_exception($original_error);
23 0           $class->throw($class->error_message_text($original_error).' on create_values_by_args',
24             syform => $syform,
25             original_error => $original_error,
26             args => $args,
27             );
28             };
29              
30             1;
31              
32             __END__
33              
34             =pod
35              
36             =head1 NAME
37              
38             SyForm::Exception::UnknownErrorOnCreateValuesByArgs - Exception on SyForm::Process->create_values_by_args
39              
40             =head1 VERSION
41              
42             version 0.103
43              
44             =head1 AUTHOR
45              
46             Torsten Raudssus <torsten@raudss.us>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2014 by Torsten Raudssus.
51              
52             This is free software; you can redistribute it and/or modify it under
53             the same terms as the Perl 5 programming language system itself.
54              
55             =cut