mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Purchase API Refactoring: Market Gear (#10010)
* convert buyGear to buyMarketGearOperation + tests * move NotImplementedError
This commit is contained in:
@@ -40,3 +40,12 @@ export class NotFound extends CustomError {
|
||||
this.message = customMessage || 'Not found.';
|
||||
}
|
||||
}
|
||||
|
||||
export class NotImplementedError extends CustomError {
|
||||
constructor (str) {
|
||||
super();
|
||||
this.name = this.constructor.name;
|
||||
|
||||
this.message = `Method: '${str}' not implemented`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user