UNPKG

gridiron-example

Version:

Example webpack project for gridiron and related components. Showcases what can be done with gridiron.

11 lines (8 loc) 369 B
import ExtendableError from './ExtendableError' export const zeroElementsStateError = (prop, ...args) => new StateError(`Cannot remove from state property '${prop}' with zero elements.`, ...args) export default class StateError extends ExtendableError { constructor(message, innerError) { super(message, innerError) this.name = 'StateError' } }