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