Objective-C in the Cloud

OCCInvocationContext Class Reference

Declared inOCClient/OCInvocationContext.h
Base classNSObject
GuidesClient Libraries (Tutorial)
Client Libraries Conceptual Guide

Overview

An invocation context manages the execution of messages inside an invocation group. It is passed to its execution block as an argument.

[OCCInvocationGroup executeBlock:
^(OCCInvocationContext *context)
{

}];

By now there is only one property error, which simply signals an error while execution.

Tasks

Error Handling

error

Declared Properties

error

Error executing a invocation.

NSError *error (readonly, nonatomic)

Discussion

This property is set by the clients message invocation code and contains the error that occurred while sending a message to the remote service. If there has not been an error, it is nil.

Consecutive messages in the context are not dispatched. Therefore once set it never returns to nil.