-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
developmentStandard developmentStandard development
Description
Specification
Recently I added a toString override to the ErrorPolykey class as a way of extending it to include better details about the cause chain. After some discussion about it this needs to be removed infavor of an alternative method.
We need to create a utility what will structure errors as a more informative string to be used when we need to convert errors for use in logger messages. It needs to be aware of the type of error it receives and format it accordingly.
Additional context
Tasks
- remove the
toStringmethod fromErrorPolykey - Create a utility that converts errors into formatted strings.
- Apply this utility wherever an error is being converted to a string with
toStringor theStringconstructor.
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard development