Filename | /var/www/foswiki11/lib/Foswiki/ValidationException.pm |
Statements | Executed 8 statements in 160µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 14µs | 27µs | BEGIN@12 | Foswiki::ValidationException::
1 | 1 | 1 | 9µs | 14µs | BEGIN@13 | Foswiki::ValidationException::
1 | 1 | 1 | 3µs | 3µs | BEGIN@14 | Foswiki::ValidationException::
0 | 0 | 0 | 0s | 0s | new | Foswiki::ValidationException::
0 | 0 | 0 | 0s | 0s | stringify | Foswiki::ValidationException::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | |||||
3 | =begin TML | ||||
4 | |||||
5 | ---+ package Foswiki::ValidationException | ||||
6 | |||||
7 | Exception used raise a validation error. See also Foswiki::Validation. | ||||
8 | |||||
9 | =cut | ||||
10 | |||||
11 | package Foswiki::ValidationException; | ||||
12 | 2 | 28µs | 2 | 40µs | # spent 27µs (14+13) within Foswiki::ValidationException::BEGIN@12 which was called:
# once (14µs+13µs) by Foswiki::Plugin::BEGIN@16 at line 12 # spent 27µs making 1 call to Foswiki::ValidationException::BEGIN@12
# spent 13µs making 1 call to strict::import |
13 | 2 | 23µs | 2 | 19µs | # spent 14µs (9+5) within Foswiki::ValidationException::BEGIN@13 which was called:
# once (9µs+5µs) by Foswiki::Plugin::BEGIN@16 at line 13 # spent 14µs making 1 call to Foswiki::ValidationException::BEGIN@13
# spent 5µs making 1 call to warnings::import |
14 | 2 | 100µs | 1 | 3µs | # spent 3µs within Foswiki::ValidationException::BEGIN@14 which was called:
# once (3µs+0s) by Foswiki::Plugin::BEGIN@16 at line 14 # spent 3µs making 1 call to Foswiki::ValidationException::BEGIN@14 |
15 | 1 | 6µs | our @ISA = ('Error'); # base class | ||
16 | |||||
17 | =begin TML | ||||
18 | |||||
19 | ---++ ClassMethod new( $action ) | ||||
20 | Constructor | ||||
21 | |||||
22 | =cut | ||||
23 | |||||
24 | sub new { | ||||
25 | my ( $class, $action ) = @_; | ||||
26 | return bless( { action => $action }, $class ); | ||||
27 | } | ||||
28 | |||||
29 | =begin TML | ||||
30 | |||||
31 | ---++ ObjectMethod stringify() -> $string | ||||
32 | |||||
33 | Generate a summary string. This is mainly for debugging. | ||||
34 | |||||
35 | =cut | ||||
36 | |||||
37 | sub stringify { | ||||
38 | my $this = shift; | ||||
39 | return | ||||
40 | "ValidationException ($this->{action}): Key is invalid or has expired"; | ||||
41 | } | ||||
42 | |||||
43 | 1 | 3µs | 1; | ||
44 | __END__ |