The (webid-oidc server endpoint) module defines exception types that can be emitted to abort the computation in a handler. If an exception of a different kind is raised, this will lead to a 500 Internal Server Error response.
The request failed, with code and reason-phrase.
Create an exception with code and reason-phrase.
Check if exn was thrown because the request failed.
Return the code and reason-phrase for when exn was thrown, if it was thrown because of a failing request.
If a web exception is raised, maybe it is caused by some user
identified by webid (an URI, or
Check if exn was caused by the user.
Return the webid of the user that caused exn.
An exception containing a message that is safe to show to the user, as
an SXML fragment of XHTML. Typically, this would be a
You can set a user-message multiple times. The occurences will be concatenated in the response, in the order they appear in the composite exception.
Create a new user message containing the sxml fragment.
Check if there is at least one user message in exn.
Return all user messages in exn, as a