{"modulePath":"github.com/aws/aws-lambda-runtime-interface-emulator","version":"v0.0.0-20261030222936-bef5c4ba774d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fatalerror\n\n## Types\n\n```go\ntype ErrorType string\n```\nErrorType is returned to slicer inside DONE\n\n```go\nconst (\n\t// Extension errors\n\tAgentInitError   ErrorType = \"Extension.InitError\"   // agent exited after calling /extension/init/error\n\tAgentExitError   ErrorType = \"Extension.ExitError\"   // agent exited after calling /extension/exit/error\n\tAgentCrash       ErrorType = \"Extension.Crash\"       // agent crashed unexpectedly\n\tAgentLaunchError ErrorType = \"Extension.LaunchError\" // agent could not be launched\n\n\t// Runtime errors\n\tRuntimeExit                      ErrorType = \"Runtime.ExitError\"\n\tInvalidEntrypoint                ErrorType = \"Runtime.InvalidEntrypoint\"\n\tInvalidWorkingDir                ErrorType = \"Runtime.InvalidWorkingDir\"\n\tInvalidTaskConfig                ErrorType = \"Runtime.InvalidTaskConfig\"\n\tTruncatedResponse                ErrorType = \"Runtime.TruncatedResponse\"\n\tRuntimeInvalidResponseModeHeader ErrorType = \"Runtime.InvalidResponseModeHeader\"\n\tRuntimeUnknown                   ErrorType = \"Runtime.Unknown\"\n\n\t// Function errors\n\tFunctionOversizedResponse ErrorType = \"Function.ResponseSizeTooLarge\"\n\tFunctionUnknown           ErrorType = \"Function.Unknown\"\n\n\t// Sandbox errors\n\tSandboxFailure ErrorType = \"Sandbox.Failure\"\n\tSandboxTimeout ErrorType = \"Sandbox.Timeout\"\n)\n```\nTODO: Find another name than \"fatalerror\" TODO: Rename all const so that they always begin with Agent/Runtime/Sandbox/Function TODO: Add filtering for extensions as well\n\n```go\nfunc GetValidRuntimeOrFunctionErrorType(errorType string) ErrorType\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda/fatalerror","name":"fatalerror","synopsis":"","isRedistributable":true}
