Files
url_tracker_tool/node_modules/bare-events/lib/errors.js
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

33 lines
711 B
JavaScript

module.exports = class EventEmitterError extends Error {
constructor(msg, code, fn = EventEmitterError, opts) {
super(`${code}: ${msg}`, opts)
this.code = code
if (Error.captureStackTrace) {
Error.captureStackTrace(this, fn)
}
}
get name() {
return 'EventEmitterError'
}
static OPERATION_ABORTED(cause, msg = 'Operation aborted') {
return new EventEmitterError(
msg,
'OPERATION_ABORTED',
EventEmitterError.OPERATION_ABORTED,
{ cause }
)
}
static UNHANDLED_ERROR(cause, msg = 'Unhandled error') {
return new EventEmitterError(
msg,
'UNHANDLED_ERROR',
EventEmitterError.UNHANDLED_ERROR,
{ cause }
)
}
}