Purchase API Refactoring: Market Gear (#10010)

* convert buyGear to buyMarketGearOperation + tests

* move NotImplementedError
This commit is contained in:
negue
2018-03-17 21:56:19 +01:00
committed by Matteo Pagliazzi
parent 29a9deaeb8
commit 2a97915477
6 changed files with 253 additions and 87 deletions

View File

@@ -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`;
}
}