Reports halfway through

Datatable now correctly handles the situation when user is not logged in and access protected resources
This commit is contained in:
Tomas Bures 2017-07-09 23:16:47 +02:00
parent aba42d94ac
commit 3f7b428546
28 changed files with 421 additions and 471 deletions

View file

@ -56,9 +56,15 @@ class IncorrectPasswordError extends InteroperableError {
}
}
class InvalidToken extends InteroperableError {
class InvalidTokenError extends InteroperableError {
constructor(msg, data) {
super('InvalidToken', msg, data);
super('InvalidTokenError', msg, data);
}
}
class DependencyNotFoundError extends InteroperableError {
constructor(msg, data) {
super('DependencyNotFound', msg, data);
}
}
@ -72,7 +78,8 @@ const errorTypes = {
DuplicitNameError,
DuplicitEmailError,
IncorrectPasswordError,
InvalidToken
InvalidTokenError,
DependencyNotFoundError
};
function deserialize(errorObj) {