UNPKG

@logux/client

Version:

Logux base components to build web client

9 lines (8 loc) 255 B
export class LoguxUndoError extends Error { constructor(action) { let type = action.action ? action.action.type : 'action' super(`Server undid ${type} because of ${action.reason}`) this.name = 'LoguxUndoError' this.action = action } }