Skip to content

Commit 9630cdd

Browse files
committed
Add NewLambdaRuntimeError
1 parent 8ab511e commit 9630cdd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
4+
//
5+
// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
struct NewLambdaRuntimeError: Error {
16+
enum Code {
17+
case writeAfterFinishHasBeenSent
18+
case finishAfterFinishHasBeenSent
19+
case lostConnectionToControlPlane
20+
case unexpectedStatusCodeForRequest
21+
22+
}
23+
24+
var code: Code
25+
26+
27+
}

0 commit comments

Comments
 (0)