Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.action_runtime.exit_codes

Module Contents

ExitCode

class roboto.action_runtime.exit_codes.ExitCode#View Source

Bases: enum.IntEnum

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

Attributes

ExitCode.ConfigurationError

ConfigurationError = 78 #

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

ExitCode.DataError

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.”

ExitCode.InternalError

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.

ExitCode.Success

Success = 0 #

ExitCode.UsageError

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.

Was this page helpful?