Open Ellisande opened 8 years ago
Feature
new Error
It just news up the JavaScript error object and passes a message
error
It will help the consume identify if they are not using the APIs correctly.
Thoughts for a starter:
class UndefinedThenError extends Error { constructor(){ super(); this.likelyReasons = likelyReasons; this.message = straightErrorMessage + likelyReasons + prettyFormatting } }
What kind of issue is this? (bug, feature, etc)
Feature
What is the proposed change?
new Error
to use a new error class. The goal is to provided very detailed errors.What was the old behavior, if any?
It just news up the JavaScript
error
object and passes a messageWhy will this be beneficial?
It will help the consume identify if they are not using the APIs correctly.
Misc. info
Thoughts for a starter: