UNPKG

@harishreddym/baqend

Version:

Baqend JavaScript SDK

25 lines (20 loc) 486 B
'use strict'; const PersistentError = require('./PersistentError'); /** * @alias error.EntityExistsError * @extends error.PersistentError */ class EntityExistsError extends PersistentError { /** * @param {string} entity */ constructor(entity) { super('The entity ' + entity + ' is managed by a different db.'); /** * The entity which cause the error * @type {binding.Entity} */ this.entity = entity; } } module.exports = EntityExistsError;