-
Zash
Did it like that in the Prosody error wrapper library, which tries to be somewhat ignorant of XML. The application-specific condition can be a tuple (condition, namespace) or a single XML element.
-
stpeter
@Sam AFAIK, we've never defined an application-specific error condition that employs more than one child element of <error/>. IMHO conceptually that wouldn't be sensible, since it is a particular component (e.g., MUC) or code module (e.g., disco) that generates the application-specific condition - basically that piece of code further clarifies specifically why it's a bad-request error or whatever.
-
stpeter
(It wouldn't make sense for the MUC module to say "here's why I think it's a bad request" and for the disco to offer its own independent reason why it's a bad request, as it were...)✎ -
stpeter
(It wouldn't make sense for the MUC module to say "here's why I think it's a bad request" and for the disco module to offer its own independent reason why it's a bad request, as it were...) ✏
-
Zash
PubSub uses some application-specific conditions. One could imagine an application using PubSub for something wanting to be even more specific in its errors.
-
stpeter
nod
-
Sam
Thanks all; makes sense.
-
Zash
Reminds me of my unfinished XEP about s2s error conditions.
-
Zash
Given how uncommon application-specific conditions are, seems a bit hard to justify adding support for unlimited numbers of them...
-
Beherit
Hello everyone, very last call for XMPP projects to submit their ideas and participation interest: https://wiki.xmpp.org/web/Google_Summer_of_Code_2023#Project_Ideas_(TO_BE_UPDATED_FOR_2023)