This commit is contained in:
counterweight 2025-02-13 00:02:40 +01:00
parent 768efaf3a2
commit fb9832fabb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
8 changed files with 306 additions and 92 deletions

34
src/errors.js Normal file
View 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
};