Skip to content

Commit

Permalink
Remove CompileError and RuntimeError classes
Browse files Browse the repository at this point in the history
  • Loading branch information
64json committed Nov 19, 2018
1 parent d0eb54c commit e228589
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions src/backend/common/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ class ForbiddenError extends ClientError {
class UnauthorizedError extends ClientError {
}

class CompileError extends ClientError {
}

class RuntimeError extends ClientError {
}

export {
ClientError,
NotFoundError,
ForbiddenError,
UnauthorizedError,
CompileError,
RuntimeError,
};
1 change: 0 additions & 1 deletion src/backend/controllers/tracers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import uuid from 'uuid';
import path from 'path';
import { GitHubApi } from '/apis';
import { execute } from '/common/util';
import { CompileError, RuntimeError } from '/common/error';

const router = express.Router();

Expand Down
4 changes: 0 additions & 4 deletions src/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import bodyParser from 'body-parser';
import * as controllers from '/controllers';
import {
ClientError,
CompileError,
ForbiddenError,
NotFoundError,
RuntimeError,
UnauthorizedError,
} from '/common/error';

Expand All @@ -24,8 +22,6 @@ app.use((err, req, res, next) => {
[UnauthorizedError, 401],
[ForbiddenError, 403],
[NotFoundError, 404],
[CompileError, 422],
[RuntimeError, 422],
[ClientError, 400],
[Error, 500],
];
Expand Down

0 comments on commit e228589

Please sign in to comment.