ionic-orm-x
Version:
Data-mapper ORM for Ionic WebSQL and SQLite
13 lines • 583 B
JavaScript
/**
* Thrown when consumer tries to access repository before connection is established.
*/
export class NoConnectionForRepositoryError extends Error {
constructor(connectionName) {
super();
this.name = "NoConnectionForRepositoryError";
this.message = `Cannot get a Repository for "${connectionName} connection, because connection with the database ` +
`is not established yet. Call connection#connect method to establish connection.`;
this.stack = new Error().stack;
}
}
//# sourceMappingURL=NoConnectionForRepositoryError.js.map