Simplify HttpError
This change is cosmetic * Remove public keyword - public by default * Remove details - this was unused throughout the entire codebase
This commit is contained in:
parent
c78d164948
commit
f621a74062
@ -9,7 +9,7 @@ export enum HttpCode {
|
||||
}
|
||||
|
||||
export class HttpError extends Error {
|
||||
public constructor(message: string, public readonly code: number, public readonly details?: object) {
|
||||
constructor(message: string, public readonly code: number) {
|
||||
super(message)
|
||||
this.name = this.constructor.name
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user