Matthew Wild
da31a10857
util.error: Switch to util.debug traceback tables and remove display_tracebacks option
5 years ago
Matthew Wild
54d7877a07
util.error: Expose is_error on registry objects for convenience
5 years ago
Matthew Wild
919a05543a
util.error: rename is_err() -> is_error()
...
More descriptive and consistent with e.g. is_promise().
5 years ago
Matthew Wild
dbdf490e62
util.error: Add coerce and wrap methods to registry(?) objects
5 years ago
Kim Alvefur
8d66f94b9e
util.error: Remove a stray word from a comment
...
Earlier in the process the namespace could be given in the registry
table, the comment would have read
> registry can be given as second argument if namespace is either not
> used or is given in the registry table
The word seems to have been left when this method was scrapped for being
complicated and redundant.
5 years ago
Matthew Wild
bbc78f6e85
util.error: Pass through existing error objects passed to new()
5 years ago
Kim Alvefur
02b56f2304
util.error: Drop registry initialization with namespace as key
...
Enough complexity with compact vs normal and with/without namespace
5 years ago
Kim Alvefur
315d9ef8d9
util.error: Expand compact registries into normal form internally
...
Also the exposed form on the table returned from init()
5 years ago
Kim Alvefur
e04db26e8f
util.error: Add a "compact mode" for registries
...
Inspired by the older registry in pubsub.lib.lua
5 years ago
Kim Alvefur
8d1e8e9ad9
util.error: Expose source and registry as fields on the registry object
...
For access, e.g. to identify and compare errors later
5 years ago
Kim Alvefur
5407d52f84
util.error: Turns out <gone> wasn't alone, there's also <redirect>
5 years ago
Kim Alvefur
76fbdfbfdd
util.error: Pass converted stanza errors throguh new()
...
In order to benefit from common processing
5 years ago
Kim Alvefur
534435a9d0
util.error: Collect Application-Specific Conditions from stanza errors
5 years ago
Kim Alvefur
049c2437d8
util.error: Add special case handling of <gone> with an URI
5 years ago
Kim Alvefur
8f053aedc2
util.error: Default error originator to stanza sender
...
The @by attribute is primarily useful for errors caused by intermediate
entities.
5 years ago
Kim Alvefur
aba41217c9
util.error: Extract error originator from stanza errors
5 years ago
Kim Alvefur
cfb933ba98
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>
5 years ago
Matthew Wild
3e3ce993e6
util.error: Simplify error creation flow
5 years ago
Matthew Wild
bcd629fbc1
util.error: Switch coerce() to use new() and change 'native' to context field 'wrapped_error'
5 years ago
Matthew Wild
7411b0a73e
util.error: Have init() return an object to allow API extensibility via additional methods
5 years ago
Matthew Wild
4f6f98131e
util.error: Minor tweaks to error creation code to prepare for future changes
5 years ago
Matthew Wild
93500d02d7
util.error: Simplify error creation - remove ability to set context from templates, and remove default context
5 years ago
Matthew Wild
b55922a55a
util.error: Add unique 'instance_id' to error objects
5 years ago
Kim Alvefur
3533f8e1b2
util.error: Add a wrapper for common parameters
...
Lets you set up source and registry once per module
5 years ago
Kim Alvefur
7e563605c9
util.error: Add a 'source' parameter where origin module can be mentioned
5 years ago
Matthew Wild
5134e64037
util.error: Add configuration for including traceback in tostring()
5 years ago
Matthew Wild
7f4e1073cd
util.error: Allow optional tracebacks to be injected on errors
...
This allows extra debug info to be provided for development purposes.
5 years ago
Kim Alvefur
1ac8dabcf5
util.error: Move default for numeric error code to net.http.server
...
Stanza errors can also have numbers but these are a legacy thing and
rarely used, except in MUC. HTTP errors on the other hand always have a
number.
6 years ago
Kim Alvefur
007f277b17
util.error: Write down some thoughts in comments
6 years ago
Kim Alvefur
3ba24f4366
util.error: Add well-known field 'code' in error templates
...
Intended to be for HTTP-ish numeric status codes
6 years ago
Kim Alvefur
dae2e97303
util.error: Fix traceback due to missing text field
7 years ago
Kim Alvefur
ac2d2297b6
util.error: Add a function for creating an error object from an error stanza
7 years ago
Matthew Wild
38462e3542
util.error: Add new util library for structured errors
7 years ago