Skip to content

Unified packages errors system #56

@xeho91

Description

@xeho91

I'd like to draw inspiration from how Svelte does it internally.

My research on how they do it

  1. For each module, there's one extended class of Error - example
  2. There's also one internal function wrapper e which allows more ergonomic instantiation of a new class from function parameters - example
  3. For each possible kind of error, they create a function whose name is used to fill the message template from markdown file. There's a reference between function name and heading name markdown - example

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions