forked from localstack/lambda-runtime-init
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfatalerror.go
More file actions
25 lines (21 loc) · 1.14 KB
/
Copy pathfatalerror.go
File metadata and controls
25 lines (21 loc) · 1.14 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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package fatalerror
// This package defines constant error types returned to slicer with DONE(failure), and also sandbox errors
// Separate package for namespacing
// ErrorType is returned to slicer inside DONE
type ErrorType string
const (
AgentInitError ErrorType = "Extension.InitError" // agent exited after calling /extension/init/error
AgentExitError ErrorType = "Extension.ExitError" // agent exited after calling /extension/exit/error
AgentCrash ErrorType = "Extension.Crash" // agent crashed unexpectedly
AgentLaunchError ErrorType = "Extension.LaunchError" // agent could not be launched
RuntimeExit ErrorType = "Runtime.ExitError"
InvalidEntrypoint ErrorType = "Runtime.InvalidEntrypoint"
InvalidWorkingDir ErrorType = "Runtime.InvalidWorkingDir"
InvalidTaskConfig ErrorType = "Runtime.InvalidTaskConfig"
TruncatedResponse ErrorType = "Runtime.TruncatedResponse"
SandboxFailure ErrorType = "Sandbox.Failure"
SandboxTimeout ErrorType = "Sandbox.Timeout"
Unknown ErrorType = "Unknown"
)