2025-12-11 10:40:55 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025 by Christian Kellner.
|
|
|
|
|
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
|
|
|
|
|
*/
|
|
|
|
|
|
2018-01-20 20:23:27 +01:00
|
|
|
class ExtendableError extends Error {
|
2020-02-26 09:05:20 +01:00
|
|
|
constructor(message) {
|
|
|
|
|
super(message);
|
|
|
|
|
this.name = this.constructor.name;
|
|
|
|
|
if (typeof Error.captureStackTrace === 'function') {
|
|
|
|
|
Error.captureStackTrace(this, this.constructor);
|
|
|
|
|
} else {
|
|
|
|
|
this.stack = new Error(message).stack;
|
2018-01-20 20:23:27 +01:00
|
|
|
}
|
2020-02-26 09:05:20 +01:00
|
|
|
}
|
2018-01-20 20:23:27 +01:00
|
|
|
}
|
2021-06-28 08:52:09 +02:00
|
|
|
class NoNewListingsWarning extends ExtendableError {}
|
2023-03-13 13:42:43 +01:00
|
|
|
export { NoNewListingsWarning };
|
|
|
|
|
export default {
|
|
|
|
|
NoNewListingsWarning,
|
|
|
|
|
};
|