Files
mattermost-mobile/app/database/exceptions/database_connection_exception.ts
Avinash Lingaloo 78b76352c8 MM-30482 [Gekidou] Data Operator (#5346)
* MM_30482: Imported database and types /database folder

* MM_30482: Imported database and types /database folder

* MM_30482 : All tests are passing

* MM_30482 : Updating patch package for watermelon db

* MM_30482 : Fixing CI issue

* MM_30482 : Updating TS  complaint

* Update index.ts

* MM_30482 : Code clean up

Co-authored-by: Avinash Lingaloo <>
2021-04-22 19:16:00 +04:00

16 lines
513 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/**
* DatabaseConnectionException: This error can be thrown whenever an issue arises with the Database
*/
class DatabaseConnectionException extends Error {
tableName?: string;
constructor(message: string, tableName?: string) {
super(message);
this.tableName = tableName;
this.name = 'DatabaseConnectionException';
}
}
export default DatabaseConnectionException;