API methods return a Result - AWS SimSpace Weaver

API methods return a Result

The majority of SimSpace Weaver API functions have a return type Aws::WeaverRuntime::Result<T>. If the function has executed successfully, the Result contains T. Otherwise, the Result contains an Aws::WeaverRuntime::ErrorCode that represents an error code from the Rust App SDK.

Result<Transaction> BeginUpdate(Application& app)

This method:

  • Returns Transaction if BeginUpdate() executes successfully.

  • Returns Aws::WeaverRuntime::ErrorCode if BeginUpdate() fails.