1RT::Client::REST::ExcepUtsieorn(C3o)ntributed Perl DocumReTn:t:aCtliioennt::REST::Exception(3)
2
3
4

NAME

6       RT::Client::REST::Exception - Exceptions thrown by RT::Client::REST
7

VERSION

9       version 0.72
10

DESCRIPTION

12       These are exceptions that are thrown by various RT::Client::REST
13       methods.
14

EXCEPTION HIERARCHY

16       RT::Client::REST::Exception
17         This exception is virtual -- it is never thrown.  It is used to group
18         all the exceptions in this category.
19
20         RT::Client::REST::OddNumberOfArgumentsException
21           This means that the method you called wants key-value pairs.
22
23         RT::Client::REST::InvaildObjectTypeException
24           Thrown when you specify an invalid type to show(), edit(), or
25           search() methods.
26
27         RT::Client::REST::RequiredAttributeUnsetException
28           An operation failed because a required attribute was not set in the
29           object.
30
31         RT::Client::REST::MalformedRTResponseException
32           RT server sent response that we cannot parse.  This may very well
33           mean a bug in this client, so if you get this exception, some debug
34           information mailed to the author would be appreciated.
35
36         RT::Client::REST::InvalidParameterValueException
37           Invalid value for comments, link types, object IDs, etc.
38
39         RT::Client::REST::CannotReadAttachmentException
40           Cannot read attachment (thrown from methods "comment()" and
41           "correspond").
42
43         RT::Client::REST::RTException
44           This is a virtual exception and is never thrown.  It is used to
45           group exceptions thrown because RT server returns an error.
46
47           RT::Client::REST::ObjectNotFoundException
48             One or more of the specified objects was not found.
49
50           RT::Client::REST::AuthenticationFailureException
51             Incorrect username or password.
52
53           RT::Client::REST::UpdateException
54             This is a virtual exception.  It is used to group exceptions
55             thrown when RT server returns an error trying to update an
56             object.
57
58             RT::Client::REST::CouldNotSetAttributeException
59               For one or another reason, attribute could not be updated with
60               the new value.
61
62             RT::Client::REST::InvalidEmailAddressException
63               Invalid e-mail address specified.
64
65             RT::Client::REST::AlreadyCurrentValueException
66               The attribute you are trying to update already has this value.
67               I do not know why RT insists on treating this as an exception,
68               but since it does so, so should the client.  You can probably
69               safely catch and throw away this exception in your code.
70
71             RT::Client::REST::ImmutableFieldException
72               Trying to update an immutable field (such as "last_updated",
73               for example).
74
75             RT::Client::REST::IllegalValueException
76               Illegal value for attribute was specified.
77
78           RT::Client::REST::UnknownCustomFieldException
79             Unknown custom field was specified in the request.
80
81           RT::Client::REST::InvalidQueryException
82             Server could not parse the search query.
83
84           RT::Client::REST::UnauthorizedActionException
85             You are not authorized to perform this action.
86
87           RT::Client::REST::AlreadyTicketOwnerException
88             The owner you are trying to assign to a ticket is already the
89             owner.  This exception is usually thrown by methods take(),
90             "untake", and "steal", if the operation is a noop.
91
92           RT::Client::REST::RequestTimedOutException
93             Request timed out.
94
95           RT::Client::REST::UnknownRTException
96             Some other RT exception that the driver cannot recognize.
97

METHODS

99       _get_exception_class
100         Figure out exception class based on content returned by RT.
101
102       _rt_content_to_exception
103         Translate error string returned by RT server into an exception object
104         ready to be thrown.
105

SEE ALSO

107       Exception::Class, RT::Client::REST.
108

AUTHOR

110       Dean Hamstead <dean@fragfest.com.au>
111
113       This software is copyright (c) 2023, 2020 by Dmitri Tikhonov.
114
115       This is free software; you can redistribute it and/or modify it under
116       the same terms as the Perl 5 programming language system itself.
117
118
119
120perl v5.38.0                      2023-07-21    RT::Client::REST::Exception(3)
Impressum