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:
G r e y 2020-08-08 21:52:14 -05:00
parent c78d164948
commit f621a74062
No known key found for this signature in database
GPG Key ID: 1B933BA64CF808BD

View File

@ -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
}