ServerCodeResult

ServerCodeResult

Represents the server code execution result

Constructor

new ServerCodeResult(succeeded, returnedValue, executedAt, endpoint, erroropt)

Create a ServerCodeResult.
Parameters:
Name Type Attributes Description
succeeded boolean Whether the invocation succeeded.
returnedValue Object Returned value of Server Code execution.
executedAt number Timestamp of the execution.
endpoint string The endpoint used in the server code.
error ServerError <optional>
Error object of the invocation if any.
Properties:
Name Type Description
succeeded boolean Whether the invocation succeeded.
returnedValue Object Returned value of Server Code execution.
executedAt number Timestamp of the execution.
endpoint string The endpoint used in the server code.
error ServerError Error object of the invocation if any.

Methods

(static) fromJson(obj) → {ServerCodeResult}

This method is for internal use only.
Parameters:
Name Type Description
obj JSON object that represented a ServerCodeResult.
Returns:
ServerCodeResult instance
Type
ServerCodeResult