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       methods.
8

DESCRIPTION

10       These are exceptions that are thrown by various RT::Client::REST
11       methods.
12

EXCEPTION HIERARCHY

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

METHODS

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

SEE ALSO

105       Exception::Class, RT::Client::REST.
106

AUTHOR

108       Dmitri Tikhonov <dtikhonov@yahoo.com>
109
110
111
112perl v5.12.0                      2008-08-16    RT::Client::REST::Exception(3)
Impressum