gokcan/react-shimmer

View on GitHub
src/IntendedError.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default class IntendedError extends Error {
  createdAt: Date;
  intention: string;

  constructor(intention = 'forcePromiseReject', ...params: undefined[]) {
    super(...params);
    this.createdAt = new Date();
    this.intention = intention;
  }
}