Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions text/0889-deprecate-ember-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
stage: accepted
start-date: 2022-12-15
release-date:
release-versions:
teams: # delete teams that aren't relevant
- framework
- typescript
prs:
accepted: https://github.com/emberjs/rfcs/pull/889
project-link:
---

# Deprecate @ember/error

## Summary

The @ember/error package is just a re-export of the native Error and is therefore unnecessary.

## Motivation

Removal of unnecessary code keeps the codebase cleaner and simplifies developer burden.

## Transition Path

There is no use case for this anymore. A simple codemod can convert current uses to the native Error class.

## How We Teach This

Remove @ember/error from docs.

## Drawbacks

You'll have to run a codemod to resolve existing usage. However, this is trivial and will actually simplify user code.

## Alternatives

None.

## Unresolved questions

None.