- added the possibility to delete 'inprogress' dataset again for the submitter - concat run commands insider Dockerfile for better docker image - npm updates - add own Exception classes HttpException.ts and InternalServerException.ts
This commit is contained in:
parent
b6b1c90ff8
commit
6fa22aad9b
18 changed files with 473 additions and 251 deletions
12
app/Exceptions/HttpException.ts
Normal file
12
app/Exceptions/HttpException.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
class HTTPException extends Error {
|
||||
public status: number;
|
||||
public message: string;
|
||||
|
||||
constructor(status: number, message: string) {
|
||||
super(message);
|
||||
this.status = status;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
export default HTTPException;
|
10
app/Exceptions/InternalServerException.ts
Normal file
10
app/Exceptions/InternalServerException.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { StatusCodes } from 'http-status-codes';
|
||||
import HTTPException from './HttpException';
|
||||
|
||||
class InternalServerErrorException extends HTTPException {
|
||||
constructor(message?: string) {
|
||||
super(StatusCodes.INTERNAL_SERVER_ERROR, message || 'Server Error');
|
||||
this.stack = '';
|
||||
}
|
||||
}
|
||||
export default InternalServerErrorException;
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue