RT::Cl...ception(3pm)
π RT::Client::REST::Exception π
okay bestie, so this is the full tea on RT::Client::REST::Exception β a page from the User Contributed Perl Documentation manual set. it's the exception page, and it's lowkey important, so lock in π«Ά
β¨ NAME β¨
RT::Client::REST::Exception β Exceptions thrown by RT::Client::REST π
πΈ VERSION πΈ
version 0.73 β¨
π¦ DESCRIPTION π¦
These are the exceptions that get thrown by all the various RT::Client::REST methods. when something goes sideways, one of these bad boys is what you're catching. no cap. π
π EXCEPTION HIERARCHY π
here's the whole family tree, bestie. it's giving royal lineage:
RT::Client::REST::Exceptionβ this exception is virtual, she is never thrown. she exists purely to group all the exceptions in this category together. iconique mother figure πRT::Client::REST::OddNumberOfArgumentsExceptionβ this means the method you called wants key-value pairs. like, pairs. two at a time. an odd number is giving chaos πRT::Client::REST::InvalidObjectTypeExceptionβ thrown when you specify an invalid type to theshow(),edit(), orsearch()methods. wrong type, bestie πRT::Client::REST::RequiredAttributeUnsetExceptionβ an operation failed because a required attribute was not set in the object. you forgot to set the thing. it needed the thing. πRT::Client::REST::MalformedRTResponseExceptionβ the RT server sent a response that we cannot parse. this may very well mean there's a bug in this client, so if you get this exception, some debug info mailed to the author would be so appreciated π₯ΊRT::Client::REST::InvalidParameterValueExceptionβ invalid value for comments, link types, object IDs, etc. wrong value, no further questions β¨RT::Client::REST::CannotReadAttachmentExceptionβ cannot read attachment. this one gets thrown from the methodscomment()andcorrespondπRT::Client::REST::RTExceptionβ this is a virtual exception and she is never thrown. she groups together exceptions thrown because the RT server returns an error. another mother πRT::Client::REST::ObjectNotFoundExceptionβ one or more of the specified objects was not found. gone. ghosted. π«₯RT::Client::REST::AuthenticationFailureExceptionβ incorrect username or password. who are you even πRT::Client::REST::UpdateExceptionβ this is a virtual exception. it groups exceptions thrown when the RT server returns an error while trying to update an object. grouping queen πRT::Client::REST::CouldNotSetAttributeExceptionβ for one or another reason, the attribute could not be updated with the new value. the why is a mystery, fr fr π€·RT::Client::REST::InvalidEmailAddressExceptionβ invalid e-mail address specified. that's not an email, babe π§RT::Client::REST::AlreadyCurrentValueExceptionβ the attribute you're trying to update already has this value. I do not know why RT insists on treating this as an exception, but since it does so, so should the client. you can probably safely catch and throw away this exception in your code, bestie β it's harmless, just dramatic πRT::Client::REST::ImmutableFieldExceptionβ you're trying to update an immutable field (such aslast_updated, for example). it said no changing, and it meant it πRT::Client::REST::IllegalValueExceptionβ an illegal value for the attribute was specified. π«
RT::Client::REST::UnknownCustomFieldExceptionβ an unknown custom field was specified in the request. never heard of her πΈRT::Client::REST::InvalidQueryExceptionβ the server could not parse the search query. that query was not querying πRT::Client::REST::UnauthorizedActionExceptionβ you are not authorized to perform this action. the audacity has been noted and declined πRT::Client::REST::AlreadyTicketOwnerExceptionβ the owner you're trying to assign to a ticket is already the owner. this exception is usually thrown by the methodstake(),untake, andsteal, if the operation is a noop. you did nothing and it noticed πRT::Client::REST::RequestTimedOutExceptionβ request timed out. clocked out, literally β°RT::Client::REST::UnknownRTExceptionβ some other RT exception that the driver cannot recognize. mystery flavour π¦
π METHODS π
_get_exception_classβ figure out the exception class based on the content returned by RT. detective work, main character energy π_rt_content_to_exceptionβ translate the error string returned by the RT server into an exception object, ready to be thrown. glow-up pipeline: string in, exception out β¨
π SEE ALSO π
Exception::Class, RT::Client::REST.
π AUTHOR π
Dean Hamstead <dean@fragfest.com.au>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026, 2020 by Dmitri Tikhonov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page bestie!! π«Ά this one's from perl v5.40.1, dated 2026-04-21, and the manual it lives in is RT::Cl...ception(3pm) (the terminal just chopped the name, iconic of it). go forth and catch your exceptions, you got this ππ β¨
π¦ where this page comes from
- ubuntu stonking: librt-client-rest-perl 1:0.73-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms