-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a489684
commit bd7db85
Showing
5 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@effect-aws/client-api-gateway-management-api": minor | ||
--- | ||
|
||
return tagged errors in the failure channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { | ||
ForbiddenException, | ||
GoneException, | ||
LimitExceededException, | ||
PayloadTooLargeException, | ||
} from "@aws-sdk/client-apigatewaymanagementapi"; | ||
import * as Data from "@effect/data/Data"; | ||
|
||
export class SdkError extends Data.TaggedClass("SdkError")<Error> {} | ||
|
||
export class ForbiddenError extends Data.TaggedClass( | ||
"ForbiddenError", | ||
)<ForbiddenException> {} | ||
|
||
export class GoneError extends Data.TaggedClass("GoneError")<GoneException> {} | ||
|
||
export class LimitExceededError extends Data.TaggedClass( | ||
"LimitExceededError", | ||
)<LimitExceededException> {} | ||
|
||
export class PayloadTooLargeError extends Data.TaggedClass( | ||
"PayloadTooLargeError", | ||
)<PayloadTooLargeException> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./Context"; | ||
export * from "./Errors"; | ||
export * from "./ApiGatewayManagementApi"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters