Upload CodeQL databases

This commit is contained in:
Robert 2021-06-22 13:05:12 +01:00
parent b2d10b39b0
commit 146c897909
24 changed files with 981 additions and 24 deletions

View file

@ -478,3 +478,16 @@ export function getRequiredEnvParam(paramName: string): string {
}
return value;
}
export class HTTPError extends Error {
public status: number;
constructor(message: string, status: number) {
super(message);
this.status = status;
}
}
export function isHTTPError(arg: any): arg is HTTPError {
return arg?.status !== undefined && Number.isInteger(arg.status);
}