Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.error: Switch to util.debug traceback tables and remove ↵ | Matthew Wild | 2020-12-09 | 1 | -9/+6 |
| | | | | display_tracebacks option | ||||
* | util.error: Expose is_error on registry objects for convenience | Matthew Wild | 2020-12-09 | 1 | -0/+1 |
| | |||||
* | util.error: rename is_err() -> is_error() | Matthew Wild | 2020-12-09 | 1 | -5/+6 |
| | | | | More descriptive and consistent with e.g. is_promise(). | ||||
* | util.error: Add coerce and wrap methods to registry(?) objects | Matthew Wild | 2020-12-09 | 1 | -0/+19 |
| | |||||
* | util.error: Remove a stray word from a comment | Kim Alvefur | 2020-11-14 | 1 | -1/+1 |
| | | | | | | | | | | | 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. | ||||
* | util.error: Pass through existing error objects passed to new() | Matthew Wild | 2020-10-15 | 1 | -0/+1 |
| | |||||
* | util.error: Drop registry initialization with namespace as key | Kim Alvefur | 2020-09-28 | 1 | -4/+0 |
| | | | | Enough complexity with compact vs normal and with/without namespace | ||||
* | util.error: Expand compact registries into normal form internally | Kim Alvefur | 2020-09-28 | 1 | -8/+34 |
| | | | | Also the exposed form on the table returned from init() | ||||
* | util.error: Add a "compact mode" for registries | Kim Alvefur | 2020-09-28 | 1 | -4/+7 |
| | | | | Inspired by the older registry in pubsub.lib.lua | ||||
* | util.error: Expose source and registry as fields on the registry object | Kim Alvefur | 2020-09-28 | 1 | -0/+2 |
| | | | | For access, e.g. to identify and compare errors later | ||||
* | util.error: Turns out <gone> wasn't alone, there's also <redirect> | Kim Alvefur | 2020-09-28 | 1 | -2/+7 |
| | |||||
* | util.error: Pass converted stanza errors throguh new() | Kim Alvefur | 2020-09-27 | 1 | -6/+3 |
| | | | | In order to benefit from common processing | ||||
* | util.error: Collect Application-Specific Conditions from stanza errors | Kim Alvefur | 2020-09-26 | 1 | -2/+3 |
| | |||||
* | util.error: Add special case handling of <gone> with an URI | Kim Alvefur | 2020-09-26 | 1 | -0/+3 |
| | |||||
* | util.error: Default error originator to stanza sender | Kim Alvefur | 2020-09-26 | 1 | -1/+2 |
| | | | | | The @by attribute is primarily useful for errors caused by intermediate entities. | ||||
* | util.error: Extract error originator from stanza errors | Kim Alvefur | 2020-09-26 | 1 | -1/+6 |
| | |||||
* | util.error: Add well-known field 'extra' | Kim Alvefur | 2020-09-26 | 1 | -0/+2 |
| | | | | | A place for various extra fields and edge cases of the stanza error data model, e.g. the URI field of <gone> | ||||
* | util.error: Simplify error creation flow | Matthew Wild | 2020-09-25 | 1 | -1/+13 |
| | |||||
* | util.error: Switch coerce() to use new() and change 'native' to context ↵ | Matthew Wild | 2020-09-25 | 1 | -5/+3 |
| | | | | field 'wrapped_error' | ||||
* | util.error: Have init() return an object to allow API extensibility via ↵ | Matthew Wild | 2020-09-25 | 1 | -3/+5 |
| | | | | additional methods | ||||
* | util.error: Minor tweaks to error creation code to prepare for future changes | Matthew Wild | 2020-09-25 | 1 | -2/+5 |
| | |||||
* | util.error: Simplify error creation - remove ability to set context from ↵ | Matthew Wild | 2020-09-25 | 1 | -1/+1 |
| | | | | templates, and remove default context | ||||
* | util.error: Add unique 'instance_id' to error objects | Matthew Wild | 2020-09-25 | 1 | -0/+2 |
| | |||||
* | util.error: Add a wrapper for common parameters | Kim Alvefur | 2020-08-28 | 1 | -0/+7 |
| | | | | Lets you set up source and registry once per module | ||||
* | util.error: Add a 'source' parameter where origin module can be mentioned | Kim Alvefur | 2020-08-28 | 1 | -1/+2 |
| | |||||
* | util.error: Add configuration for including traceback in tostring() | Matthew Wild | 2020-08-28 | 1 | -2/+12 |
| | |||||
* | util.error: Allow optional tracebacks to be injected on errors | Matthew Wild | 2020-08-28 | 1 | -0/+15 |
| | | | | This allows extra debug info to be provided for development purposes. | ||||
* | util.error: Move default for numeric error code to net.http.server | Kim Alvefur | 2019-12-14 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | util.error: Write down some thoughts in comments | Kim Alvefur | 2019-12-08 | 1 | -0/+7 |
| | |||||
* | util.error: Add well-known field 'code' in error templates | Kim Alvefur | 2019-11-01 | 1 | -0/+1 |
| | | | | Intended to be for HTTP-ish numeric status codes | ||||
* | util.error: Fix traceback due to missing text field | Kim Alvefur | 2019-07-10 | 1 | -1/+1 |
| | |||||
* | util.error: Add a function for creating an error object from an error stanza | Kim Alvefur | 2018-12-30 | 1 | -0/+12 |
| | |||||
* | util.error: Add new util library for structured errors | Matthew Wild | 2018-12-30 | 1 | -0/+40 |