doBlock:error: Type Method

+ (BOOL) doBlock:(void (^)()) block error:(NSError * *) error;

Runs a block, converting any Objective-C / C++ exception it raises into an NSError.

Parameters

  • block — The block to execute.
  • error — On return, set to the converted error if the block raised one.

Return Value

YES if the block completed without raising, NO otherwise.

Top