C++ SDK#
-
class RuntimeHandler#
Customer implement this interface to handle runtime message.
Subclassed by Function::RegisterRuntimeHandler
-
class Context#
This is the class of context parameters passed when executing a function, and this object contains information such as the call, function and environment.
Subclassed by Function::ContextImpl
-
class FunctionLogger#
The log class.
-
struct InvokeOptions#
The struct is used to provide parameters for configuring function calls.
-
class Function#
-
class FunctionError : public std::exception#
The exception class.
-
enum Function::ErrorCode#
Error codes for runtime and user handler operations.
Constant.h “include/faas/Constant.h”
Values:
-
enumerator OK#
Success.
-
enumerator ERROR#
Generic error.
-
enumerator ILLEGAL_ACCESS#
Illegal access to runtime.
-
enumerator FUNCTION_EXCEPTION#
User function exception.
-
enumerator USER_STATE_LARGE_ERROR#
-
enumerator ILLEGAL_RETURN#
Illegal return value from user handler.
-
enumerator USER_STATE_UNDEFINED_ERROR#
-
enumerator USER_INITIALIZATION_FUNCTION_EXCEPTION#
User Initializer() function exception.
-
enumerator USER_LOAD_FUNCTION_EXCEPTION#
User load function exception.
-
enumerator NO_SUCH_INSTANCE_NAME_ERROR_CODE#
Instance name not found.
-
enumerator INVALID_PARAMETER#
Invalid parameter.
-
enumerator NO_SUCH_STATE_ERROR_CODE#
Illegal access to runtime.
-
enumerator INTERNAL_ERROR#
Internal system error.
-
enumerator OK#