Untitled
unknown
plain_text
a year ago
621 B
9
Indexable
export class EngagementInsuranceHandler {
private log: LoggerInterface;
public constructor(
private quotesHandler: QuotesHandler
) {
this.log = new Logger(__filename);
}
public handle(message: any): any {
try {
if (message) {
this.log.info('Message type: ' + message.type);
this.log.info('PROCESS_QUOTES');
this.quotesHandler.processQuotes(message);
}
} catch (error) {
this.log.error(`ENGAGEMENT_INSURANCE_HANDLER_ERROR: ${JSON.stringify(error)}`);
}
}
}Editor is loading...
Leave a Comment