adonis-odm
Version:
A comprehensive MongoDB ODM for AdonisJS with Lucid-style API, type-safe relationships, embedded documents, and transaction support
55 lines • 1.69 kB
TypeScript
/**
* Base exception for MongoDB ODM
*/
export declare class MongoOdmException extends Error {
constructor(message: string);
}
/**
* Exception thrown when a model is not found
*/
export declare class ModelNotFoundException extends MongoOdmException {
constructor(model: string, identifier?: any);
}
/**
* Exception thrown when connection fails
*/
export declare class ConnectionException extends MongoOdmException {
constructor(connectionName: string, originalError?: Error);
}
/**
* Exception thrown when database operations fail
*/
export declare class DatabaseOperationException extends MongoOdmException {
constructor(operation: string, originalError?: Error);
}
/**
* Exception thrown when validation fails
*/
export declare class ValidationException extends MongoOdmException {
constructor(field: string, value: any, rule: string);
}
/**
* Exception thrown when transaction operations fail
*/
export declare class TransactionException extends MongoOdmException {
constructor(operation: string, originalError?: Error);
}
/**
* Exception thrown when hook execution fails
*/
export declare class HookExecutionException extends MongoOdmException {
constructor(hookName: string, modelName: string, originalError?: Error);
}
/**
* Exception thrown when relationship loading fails
*/
export declare class RelationshipException extends MongoOdmException {
constructor(relationshipName: string, modelName: string, originalError?: Error);
}
/**
* Exception thrown when configuration is invalid
*/
export declare class ConfigurationException extends MongoOdmException {
constructor(message: string);
}
//# sourceMappingURL=index.d.ts.map