Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f621a74062 |
@ -9,7 +9,7 @@ export enum HttpCode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class HttpError extends Error {
|
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)
|
super(message)
|
||||||
this.name = this.constructor.name
|
this.name = this.constructor.name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user