roboto.action_runtime.exit_codes#

Module Contents#

class roboto.action_runtime.exit_codes.ExitCode#

Bases: enum.IntEnum

Defined exit codes used by the action runtime. Exception codes are adapted from /usr/include/sysexits.h

ConfigurationError = 78#

From /usr/include/sysexits.h: > EX_CONFIG 78 /* configuration error */

DataError = 65#
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.”

InternalError = 70#

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.

Success = 0#
UsageError = 64#

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.