export interface CustomErrorInterface { message: string; timestamp: string; } export default abstract class CustomError extends Error { private originError?; private payload?; constructor(originError?: Error, payload?: object); getError(): Error; getPayload(): object; getResponse(): CustomErrorInterface; }