-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathErrors.ts
More file actions
44 lines (42 loc) · 1.73 KB
/
Errors.ts
File metadata and controls
44 lines (42 loc) · 1.73 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type {
AccessDeniedException,
ConflictException,
InternalServerException,
ModelErrorException,
ModelNotReadyException,
ModelStreamErrorException,
ModelTimeoutException,
ResourceNotFoundException,
ServiceQuotaExceededException,
ServiceUnavailableException,
ThrottlingException,
ValidationException,
} from "@aws-sdk/client-bedrock-runtime";
import type { TaggedException } from "@effect-aws/commons";
export const AllServiceErrors = [
"AccessDeniedException",
"ConflictException",
"InternalServerException",
"ModelErrorException",
"ModelNotReadyException",
"ModelStreamErrorException",
"ModelTimeoutException",
"ResourceNotFoundException",
"ServiceQuotaExceededException",
"ServiceUnavailableException",
"ThrottlingException",
"ValidationException",
] as const;
export type AccessDeniedError = TaggedException<AccessDeniedException>;
export type ConflictError = TaggedException<ConflictException>;
export type InternalServerError = TaggedException<InternalServerException>;
export type ModelError = TaggedException<ModelErrorException>;
export type ModelNotReadyError = TaggedException<ModelNotReadyException>;
export type ModelStreamError = TaggedException<ModelStreamErrorException>;
export type ModelTimeoutError = TaggedException<ModelTimeoutException>;
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
export type ThrottlingError = TaggedException<ThrottlingException>;
export type ValidationError = TaggedException<ValidationException>;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;