Create custom Error subclasses

Open
#16 0 comments 0 reactions 1 assignee View on GitHub

@ilyamore88 is already working on this.

Since Aug 29, 2023.

Assessment

This issue has not been assessed yet.

Description

Currently we have the following errors thrown
image

I suggest to create some high-level error classes like RangeError, NodeError, etc and then create subclasses from them like IndexOutOfBoundsError, InvalidRangeError, MergeNodeError, etc

Dominant language
TypeScript
Stars
12
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from editor-js/document-model

All issues in editor-js/document-model

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.