Skip to content

Instantly share code, notes, and snippets.

@rimiti

rimiti/example.js

Created Oct 1, 2019
Embed
What would you like to do?
Javascript: Creating a custom javascript error
export class RequestError extends Error {
constructor(message, meta = {}) {
super();
this.message = message;
this.meta = meta;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.