codybarr-thinkful / scrabble-solver

Simple scrabble solver app with built in dictionary definitions. This was for the API Hack capstone project at Thinkful.
https://scrabble.codybarr.dev
0 stars 0 forks source link

As a developer, I want the error handling done via custom error classes ;) #20

Closed codybarr closed 5 years ago

codybarr commented 5 years ago
class MyError extends Error {
  constructor(message) {
    super(message);
    this.name = 'MyError';
  }
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Examples