line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Podman::Exception; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
73978
|
use Mojo::Base 'Mojo::Exception'; |
|
8
|
|
|
|
|
165289
|
|
|
8
|
|
|
|
|
45
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
|
|
1308
|
use constant MESSAGE => { |
6
|
|
|
|
|
|
|
900 => 'Connection failed.', |
7
|
|
|
|
|
|
|
304 => 'Action already processing.', |
8
|
|
|
|
|
|
|
400 => 'Bad parameter in request.', |
9
|
|
|
|
|
|
|
404 => 'No such item.', |
10
|
|
|
|
|
|
|
405 => 'Bad request.', |
11
|
|
|
|
|
|
|
409 => 'Conflict error in operation.', |
12
|
|
|
|
|
|
|
500 => 'Internal server error.', |
13
|
8
|
|
|
8
|
|
3431
|
}; |
|
8
|
|
|
|
|
14
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'code' => -1; |
16
|
|
|
|
|
|
|
|
17
|
10
|
50
|
100
|
10
|
1
|
7392
|
sub new { $_[1] ? shift->SUPER::new(MESSAGE->{$_[0]} // 'Unknown error.')->code($_[0]) : shift->SUPER::new } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |