mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
从syzoj系统导入题目
This commit is contained in:
1 parent
97b0d782b9
commit
ce3d11b999
12 files changed
+179
-34
No files matched your search
+8
-2
@@ -32,14 +32,18 @@ class NotFoundError extends UserFacingError {
|
||||
this.code = 404;
|
||||
}
|
||||
}
|
||||
|
||||
class RemoteOnlineJudgeError extends UserFacingError {
|
||||
constructor(message) {
|
||||
super('RemoteOnlineJudgeError');
|
||||
this.params = [message];
|
||||
}
|
||||
}
|
||||
class AlreadyVotedError extends BadRequestError {
|
||||
constructor(psid, uid) {
|
||||
super('You\'ve already voted.');
|
||||
this.params = [psid, uid];
|
||||
}
|
||||
}
|
||||
|
||||
class LoginError extends ForbiddenError {
|
||||
constructor(uname) {
|
||||
super('LoginError');
|
||||
@@ -160,6 +164,7 @@ class ProblemDataNotFoundError extends NotFoundError {
|
||||
this.params = [pid];
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
BadRequestError,
|
||||
ForbiddenError,
|
||||
@@ -187,6 +192,7 @@ module.exports = {
|
||||
UserFacingError,
|
||||
SystemError,
|
||||
TrainingAlreadyEnrollError,
|
||||
RemoteOnlineJudgeError,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user