Declared in MIKMIDIErrors.h

Overview

Category to ease creation of NSError instances in the MIKMIDI error domain.

Tasks

Class Methods

MIKMIDIErrorWithCode:userInfo:

+ (instancetype)MIKMIDIErrorWithCode:(MIKMIDIErrorCode)code userInfo:(NSDictionary *)userInfo
Discussion

Creates an NSError instance whose domain is MIKMIDIErrorDomain.

Parameters

code

An error code. Should be one of the values defined for MIKMIDIErrorCode.

userInfo

A user info dictionary. Can pass nil.

Return Value

An initialized NSError instance whose domain is MIKMIDIErrorDomain.

Declared In

MIKMIDIErrors.h