When generating Typescript client files with the angular template this class gets generated automatically:
export class ApiException extends Error {
override message: string;
status: number;
response: string;
headers: { [key: string]: any; };
result: any;
constructor(message: string, status: number, response: string, headers: { [key: string]: any; }, result: any) {
super();
this.message = message;
this.status = status;
this.response = response;
this.headers = headers;
this.result = result;
}
protected isApiException = true;
static isApiException(obj: any): obj is ApiException {
return obj.isApiException === true;
}
}
This is missing the override modifier on message: string. It instead should be override message: string;
When generating Typescript client files with the angular template this class gets generated automatically:
This is missing the override modifier on
message: string. It instead should beoverride message: string;