File Coverage

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