Skip to content

Commit e228589

Browse files
committed
Remove CompileError and RuntimeError classes
1 parent d0eb54c commit e228589

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/backend/common/error.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@ class ForbiddenError extends ClientError {
1010
class UnauthorizedError extends ClientError {
1111
}
1212

13-
class CompileError extends ClientError {
14-
}
15-
16-
class RuntimeError extends ClientError {
17-
}
18-
1913
export {
2014
ClientError,
2115
NotFoundError,
2216
ForbiddenError,
2317
UnauthorizedError,
24-
CompileError,
25-
RuntimeError,
2618
};

src/backend/controllers/tracers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import uuid from 'uuid';
44
import path from 'path';
55
import { GitHubApi } from '/apis';
66
import { execute } from '/common/util';
7-
import { CompileError, RuntimeError } from '/common/error';
87

98
const router = express.Router();
109

src/backend/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import bodyParser from 'body-parser';
55
import * as controllers from '/controllers';
66
import {
77
ClientError,
8-
CompileError,
98
ForbiddenError,
109
NotFoundError,
11-
RuntimeError,
1210
UnauthorizedError,
1311
} from '/common/error';
1412

@@ -24,8 +22,6 @@ app.use((err, req, res, next) => {
2422
[UnauthorizedError, 401],
2523
[ForbiddenError, 403],
2624
[NotFoundError, 404],
27-
[CompileError, 422],
28-
[RuntimeError, 422],
2925
[ClientError, 400],
3026
[Error, 500],
3127
];

0 commit comments

Comments
 (0)