Commit graph

12 commits

Author SHA1 Message Date
Kim Alvefur
73b512d3a6 util.error: Use is_error() instead of is_err() everywhere
Continuation of 4b39691a274e
2024-10-29 14:10:02 +01:00
Kim Alvefur
c4fdaa80b6 util.error: Add test for #1805
Checks that it doesn't fail on a stanza without <error> tag
2023-04-19 12:03:34 +02:00
Matthew Wild
e875910c5d util.error: Add coerce and wrap methods to registry(?) objects 2020-12-09 13:55:10 +00:00
Kim Alvefur
33070035bf util.error: Drop registry initialization with namespace as key
Enough complexity with compact vs normal and with/without namespace
2020-09-28 23:48:02 +02:00
Kim Alvefur
9dbdb91c47 util.error: Expand compact registries into normal form internally
Also the exposed form on the table returned from init()
2020-09-28 22:13:04 +02:00
Kim Alvefur
5da983d8bd util.error: Add a "compact mode" for registries
Inspired by the older registry in pubsub.lib.lua
2020-09-28 18:39:51 +02:00
Kim Alvefur
dc446463ab util.error: Cover registry initialization in test 2020-09-28 18:36:00 +02:00
Kim Alvefur
a51d591246 util.error: Collect Application-Specific Conditions from stanza errors 2020-09-26 18:15:49 +02:00
Kim Alvefur
0354452a9a util.error: Extract error originator from stanza errors 2020-09-26 18:13:27 +02:00
Kim Alvefur
ed5841e42b util.error: Add well-known field 'extra'
A place for various extra fields and edge cases of the stanza error data
model, e.g. the URI field of <gone>
2020-09-26 17:16:34 +02:00
Kim Alvefur
03adb50555 util.error: Add well-known field 'code' in error templates
Intended to be for HTTP-ish numeric status codes
2019-11-01 18:31:12 +01:00
Kim Alvefur
ab82920e54 util.error: Add tests 2019-07-29 17:26:03 +02:00