forked from Ivasoft/mattermost-mobile
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 <>
This commit is contained in:
15
app/database/exceptions/data_operator_exception.ts
Normal file
15
app/database/exceptions/data_operator_exception.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
/**
|
||||
* DataOperatorException: This exception can be used whenever an issue arises at the operator level. For example, if a required field is missing.
|
||||
*/
|
||||
class DataOperatorException extends Error {
|
||||
error : Error | undefined;
|
||||
constructor(message: string, error?: Error) {
|
||||
super(message);
|
||||
this.name = 'DatabaseOperatorException';
|
||||
this.error = error;
|
||||
}
|
||||
}
|
||||
export default DataOperatorException;
|
||||
Reference in New Issue
Block a user