mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
4246baee16
* feat: add ui-bootstrap endpoint - Reducing calls needed for frontend to 1 instead of the current 6 fixes: #789
24 lines
548 B
TypeScript
24 lines
548 B
TypeScript
class FeatureHasTagError extends Error {
|
|
constructor(message: string) {
|
|
super();
|
|
Error.captureStackTrace(this, this.constructor);
|
|
|
|
this.name = this.constructor.name;
|
|
this.message = message;
|
|
}
|
|
|
|
toJSON(): object {
|
|
return {
|
|
isJoi: true,
|
|
name: this.constructor.name,
|
|
details: [
|
|
{
|
|
message: this.message,
|
|
},
|
|
],
|
|
};
|
|
}
|
|
}
|
|
export default FeatureHasTagError;
|
|
module.exports = FeatureHasTagError;
|