-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patherrors.ts
More file actions
29 lines (26 loc) · 867 Bytes
/
errors.ts
File metadata and controls
29 lines (26 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (c) 2025, Salesforce, Inc.
* SPDX-License-Identifier: Apache-2
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
*/
export class DataStoreNotFoundError extends Error {
constructor(message: string) {
super(message);
this.name = 'DataStoreNotFoundError';
Object.setPrototypeOf(this, DataStoreNotFoundError.prototype);
}
}
export class DataStoreServiceError extends Error {
constructor(message: string) {
super(message);
this.name = 'DataStoreServiceError';
Object.setPrototypeOf(this, DataStoreServiceError.prototype);
}
}
export class DataStoreUnavailableError extends Error {
constructor(message: string) {
super(message);
this.name = 'DataStoreUnavailableError';
Object.setPrototypeOf(this, DataStoreUnavailableError.prototype);
}
}