zenflow/composite-service

View on GitHub
src/InternalError.ts

Summary

Maintainability
A
0 mins
Test Coverage
const genericMessage =
  "This is a bug in composite-service. Please file an issue in https://github.com/zenflow/composite-service/issues";

export class InternalError extends Error {
  constructor(message: string) {
    super(`${message}. ${genericMessage}`);
    Object.setPrototypeOf(this, InternalError.prototype);
  }
}
InternalError.prototype.name = InternalError.name;