style: fix linting issues met Prettier
This commit is contained in:
parent
56d34adbc0
commit
7ad808cf3b
34 changed files with 244 additions and 214 deletions
|
@ -1,4 +1,4 @@
|
|||
import {ExceptionWithHttpState} from "./exception-with-http-state.js";
|
||||
import { ExceptionWithHttpState } from './exception-with-http-state.js';
|
||||
|
||||
/**
|
||||
* Exception for HTTP 400 Bad Request
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {ExceptionWithHttpState} from "./exception-with-http-state.js";
|
||||
import { ExceptionWithHttpState } from './exception-with-http-state.js';
|
||||
|
||||
/**
|
||||
* Exception for HTTP 409 Conflict
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {ConflictException} from "./conflict-exception";
|
||||
import { ConflictException } from './conflict-exception';
|
||||
|
||||
export class EntityAlreadyExistsException extends ConflictException {
|
||||
constructor(message: string) {
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
* Exceptions which are associated with a HTTP error code.
|
||||
*/
|
||||
export abstract class ExceptionWithHttpState extends Error {
|
||||
constructor(public status: number, public error: string) {
|
||||
constructor(
|
||||
public status: number,
|
||||
public error: string
|
||||
) {
|
||||
super(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {ExceptionWithHttpState} from "./exception-with-http-state.js";
|
||||
import { ExceptionWithHttpState } from './exception-with-http-state.js';
|
||||
|
||||
/**
|
||||
* Exception for HTTP 403 Forbidden
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {ExceptionWithHttpState} from "./exception-with-http-state.js";
|
||||
import { ExceptionWithHttpState } from './exception-with-http-state.js';
|
||||
|
||||
/**
|
||||
* Exception for HTTP 404 Not Found
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {ExceptionWithHttpState} from "./exception-with-http-state.js";
|
||||
import { ExceptionWithHttpState } from './exception-with-http-state.js';
|
||||
|
||||
/**
|
||||
* Exception for HTTP 401 Unauthorized
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue