MonobjcMonobjc Documented Class Library
NSError Constructor (domain, code, dict)
NamespacesMonobjc.FoundationNSErrorNSError(NSString, NSInteger, NSDictionary)

Returns an NSError object initialized for a given domain and code with a given userInfo dictionary.

Original signature is '- (id)initWithDomain:(NSString *)domain code:(NSInteger)code userInfo:(NSDictionary *)dict'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSError(
	NSString domain,
	NSInteger code,
	NSDictionary dict
)
Public Sub New ( _
	domain As NSString, _
	code As NSInteger, _
	dict As NSDictionary _
)
public:
NSError(
	NSString^ domain, 
	NSInteger code, 
	NSDictionary^ dict
)
Parameters
domain (NSString)
The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil.
code (NSInteger)
The error code for the error.
dict (NSDictionary)
The userInfo dictionary for the error. userInfo may be nil.
Return Value
An NSError object initialized for domain with the specified error code and the dictionary of arbitrary data userInfo.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)