myanimelist-jikan
Version:
powerful Node.js wrapper for the Jikan.moe v4 API.
14 lines (12 loc) • 308 B
JavaScript
// src/errors/ValidationError.js
/**
* Custom error class for handling validation errors on user input,
* before a request is sent to the Jikan API.
* @author tamaaxzcw
*/
export class ValidationError extends Error {
constructor(message) {
super(message);
this.name = 'ValidationError';
}
}