Lund-Org/cherry

View on GitHub
src/hooks/DuplicateHookException.js

Summary

Maintainability
A
0 mins
Test Coverage
const CherryError = require('../abstract/CherryError')

class DuplicateHookException extends CherryError {
  constructor (hookName) {
    super(`The hook '${hookName}' has been duplicated. To shutdown this exception, remove the duplicate or turn off by providing in the options the option 'allowDuplicatedHooks'`)
  }
}

module.exports = DuplicateHookException