ionic-orm-2
Version:
Data-mapper ORM for Ionic WebSQL and SQLite
15 lines • 676 B
JavaScript
/**
* Thrown when consumer tries to access repository before connection is established.
*/
/**
* 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