Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

363 B
Raw Blame
/**
 * An error whose message is written for the caller. A filter passes such a
 * message on, while it hides the message of every other error, because that
 * message can carry internals of the application.
 */
export class CallerFacingError extends Error {
  public constructor(message: string) {
    super(message);

    this.name = 'CallerFacingError';
  }
}