Reports halfway through
Datatable now correctly handles the situation when user is not logged in and access protected resources
This commit is contained in:
parent
aba42d94ac
commit
3f7b428546
28 changed files with 421 additions and 471 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue