Catman...sponse(3pm)
β¨ Catmandu::AlephX::Response β¨
okay bestie, gather round π this is Catmandu::AlephX::Response, aka the base class for xml-responses from the AlephX-server. she's the mom of the whole response family, she holds it down, no cap π
πΈ NAME πΈ
Catmandu::AlephX::Response β the base class for xml-responses coming at you from the AlephX-server π¦
β¨ SYNOPSIS β¨
so like, every single response from the AlephX-server shares the same functionality and the same keys, periodt:
- expressed in XML π§
- the name of the parent element is equal to the parameter
op, EXCEPT when the value inopisn't recognized β then it gets set tologinπ - when an internal error happened, that error is reported in the key
errorπ - the session-id is reported in the key
session-idπ - all the other subkeys are treated as
dataβ
Every public method from Catmandu::AlephX hands you back an object that's a subclass of Catmandu::AlepX::Response. And if there's a connection error, or the xml parsing goes sideways? Exceptions get thrown, bestie, no gentle landing π
π methods π
π«Ά op
the type of op.
π error
the internal error that got reported in the xml response.
heads up: these errors only apply to values in your parameters. Other errors β like connection errors, or problems while parsing the xml response β get thrown as exceptions instead. So don't go looking for them here π
π session_id
the session-id of the current request.
β is_success
this method only checks whether there was an internal error in the AlephX-response. so it literally just tests if the key error was undefined. that's it. that's the whole vibe check π¦
and like, as said before: other errors are thrown as exceptions π
lowkey important reminder:is_successis only about thaterrorkey β connection drama and xml parsing drama live in exception-land, not here π
perl v5.36.0, dated 2023-02-02 β that's the tea, bestie, the manpage said it, I said it, and we're both slaying πβ¨ππ¦π
π¦ where this page comes from
- debian bookworm: libcatmandu-alephx-perl 1.073-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-alephx-perl 1.073-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-alephx-perl 1.073-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-alephx-perl 1.073-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-alephx-perl 1.073-2 Β· 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