add tests, move CustomError to common, fix casting

This commit is contained in:
Matteo Pagliazzi
2016-03-03 00:16:28 +01:00
parent 05b6e25c28
commit 80f791c86b
11 changed files with 260 additions and 42 deletions

View File

@@ -1,11 +1,4 @@
// Base class for custom application errors
// It extends Error and capture the stack trace
export class CustomError extends Error {
constructor () {
super();
Error.captureStackTrace(this, this.constructor);
}
}
import CustomError from '../../../../common/script/api-v3/customError';
/**
* @apiDefine NotAuthorized