React-based /account endpoint for editing a user profile
This commit is contained in:
parent
09fe27fe2b
commit
fbb8f5799e
14 changed files with 386 additions and 51 deletions
|
@ -44,6 +44,12 @@ class DuplicitNameError extends InteroperableError {
|
|||
}
|
||||
}
|
||||
|
||||
class DuplicitEmailError extends InteroperableError {
|
||||
constructor(msg, data) {
|
||||
super('DuplicitEmailError', msg, data);
|
||||
}
|
||||
}
|
||||
|
||||
const errorTypes = {
|
||||
InteroperableError,
|
||||
NotLoggedInError,
|
||||
|
@ -51,7 +57,8 @@ const errorTypes = {
|
|||
NotFoundError,
|
||||
LoopDetectedError,
|
||||
ChildDetectedError,
|
||||
DuplicitNameError
|
||||
DuplicitNameError,
|
||||
DuplicitEmailError
|
||||
};
|
||||
|
||||
function deserialize(errorObj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue