@adguard/agtree
Version:
Tool set for working with adblock filter lists
32 lines (30 loc) • 902 B
JavaScript
/*
* AGTree v3.2.4 (build date: Fri, 17 Oct 2025 14:48:54 GMT)
* (c) 2025 Adguard Software Ltd.
* Released under the MIT license
* https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree#readme
*/
/**
* @file Customized error class for not implemented features.
*/
const ERROR_NAME = 'NotImplementedError';
const BASE_MESSAGE = 'Not implemented';
/**
* Customized error class for not implemented features.
*/
class NotImplementedError extends Error {
/**
* Constructs a new `NotImplementedError` instance.
*
* @param message Additional error message (optional)
*/
constructor(message = undefined) {
// Prepare the full error message
const fullMessage = message
? `${BASE_MESSAGE}: ${message}`
: BASE_MESSAGE;
super(fullMessage);
this.name = ERROR_NAME;
}
}
export { NotImplementedError };