File Coverage

blib/lib/RT/Client/REST/Object/Exception.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             #!perl
2             # PODNAME: RT::Client::REST::Object::Exception
3              
4 9     9   55 use strict;
  9         19  
  9         228  
5 9     9   39 use warnings;
  9         19  
  9         369  
6              
7             $RT::Client::REST::Object::Exception::VERSION = '0.70';
8             use parent qw(RT::Client::REST::Exception);
9 9     9   417  
  9         289  
  9         68  
10             use RT::Client::REST::Exception (
11             'RT::Client::REST::Object::OddNumberOfArgumentsException' => {
12 9         106 isa => __PACKAGE__,
13             description => 'This means that we wanted name/value pairs',
14             },
15              
16             'RT::Client::REST::Object::InvalidValueException' => {
17             isa => __PACKAGE__,
18             description => 'Object attribute was passed an invalid value',
19             },
20              
21             'RT::Client::REST::Object::NoValuesProvidedException' => {
22             isa => __PACKAGE__,
23             description => 'Method expected parameters, but none were provided',
24             },
25              
26             'RT::Client::REST::Object::InvalidSearchParametersException' => {
27             isa => __PACKAGE__,
28             description => 'Invalid search parameters provided',
29             },
30              
31             'RT::Clite::REST::Object::InvalidAttributeException' => {
32             isa => __PACKAGE__,
33             description => 'Invalid attribute name',
34             },
35              
36             'RT::Client::REST::Object::IllegalMethodException' => {
37             isa => __PACKAGE__,
38             description => 'Illegal method is called on the object',
39             },
40              
41             'RT::Client::REST::Object::NoopOperationException' => {
42             isa => __PACKAGE__,
43             description => 'The operation was a noop',
44             },
45              
46             'RT::Client::REST::Object::RequiredAttributeUnsetException' => {
47             isa => __PACKAGE__,
48             description => 'An operation failed because a required attribute ' .
49             'was not set in the object',
50             },
51             );
52 9     9   946  
  9         17  
53             1;
54              
55              
56             =pod
57              
58             =encoding UTF-8
59              
60             =head1 NAME
61              
62             RT::Client::REST::Object::Exception
63              
64             =head1 VERSION
65              
66             version 0.70
67              
68             =head1 AUTHOR
69              
70             Dean Hamstead <dean@fragfest.com.au>
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             This software is copyright (c) 2022, 2020 by Dmitri Tikhonov.
75              
76             This is free software; you can redistribute it and/or modify it under
77             the same terms as the Perl 5 programming language system itself.
78              
79             =cut