roboto.action_runtime.exit_codes
Module Contents
ExitCode
Bases: enum.IntEnum
Defined exit codes used by the action runtime. Exception codes are adapted from /usr/include/sysexits.h
Attributes
ExitCode.ConfigurationError
From /usr/include/sysexits.h: > EX_CONFIG 78 /* configuration error */
ExitCode.DataError
From /usr/include/sysexits.h:
> EX_DATAERR – The input data was incorrect in some way. > This should only be used for user’s data & not system > files.
We use this in our own ingestion actions to signify “the ingestion action did the right thing, but the input file was the wrong format, corrupted, a 0-byte file, etc.”
ExitCode.InternalError
From /usr/include/sysexits.h: > EX_SOFTWARE – An internal software error has been detected. > This should be limited to non-operating system related > errors as possible.
ExitCode.Success
ExitCode.UsageError
From /usr/include/sysexits.h: > EX_USAGE – The command was used incorrectly, e.g., with > the wrong number of arguments, a bad flag, a bad > syntax in a parameter, or whatever.