baqend
Version:
Baqend JavaScript SDK
18 lines (15 loc) • 419 B
text/typescript
import { PersistentError } from './PersistentError';
import { Entity } from '../binding';
export class EntityExistsError extends PersistentError {
/**
* The entity which cause the error
*/
public entity: Entity;
/**
* @param entity - The entity which cause the error
*/
constructor(entity: Entity) {
super(`The entity ${entity} is managed by a different db.`);
this.entity = entity;
}
}