knit-pk/homepage-nuxtjs

View on GitHub
src/helpers/store/errors/Cancel.js

Summary

Maintainability
A
35 mins
Test Coverage
export const CANCEL = 'CANCEL'

export class Cancel extends Error {
  constructor (actionName) {
    super(`Canceling others on stack for action: ${actionName}`)
    this.name = CANCEL
  }
}