worksss
This commit is contained in:
parent
768efaf3a2
commit
fb9832fabb
8 changed files with 306 additions and 92 deletions
34
src/errors.js
Normal file
34
src/errors.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
class ChallengedUsedError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "ChallengeUsedError";
|
||||
}
|
||||
}
|
||||
|
||||
class InvalidSignatureError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "InvalidSignatureError";
|
||||
}
|
||||
}
|
||||
|
||||
class AppInvitedUsedError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "AppInvitedUsedError";
|
||||
}
|
||||
}
|
||||
|
||||
class NotFoundError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "AppInvitedUsedError";
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
ChallengedUsedError,
|
||||
InvalidSignatureError,
|
||||
AppInvitedUsedError,
|
||||
NotFoundError
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue