Contract Class Reference

Inherits from NSObject
Declared in Contract.h
Contract.m

Overview

Preconditions and assertions for application execution.

+ fail

Logs the current stack trace and exits the current application.

+ (void)fail

Discussion

Logs the current stack trace and exits the current application.

Declared In

Contract.h

+ notImplemented

Invoked when a method is not implemented

+ (void)notImplemented

Discussion

Invoked when a method is not implemented

Declared In

Contract.h

+ requires:

Asserts a condition is true, and if false, logs the current stack trace and exits the current application.

+ (void)requires:(bool)condition

Parameters

condition

The condition to be tested

Discussion

Asserts a condition is true, and if false, logs the current stack trace and exits the current application.

Declared In

Contract.h