Skip to content

Instantly share code, notes, and snippets.

@adio0002
adio0002 / error.js
Created January 22, 2026 23:25
Exercise 1 - Custom Error File
// Custom Error File
// FetchError - extends Error
class FetchError extends Error {
constructor(message, response, request) {
super(message);
this.name = 'FetchError';
this.response = response;
this.request = request;
}
}