NSException Additions
Category of: NSException
Declared in:
- EOControl/EOClassDescription.h
Category Description
Enterprise Objects Framework adds methods to the Foundation Framework's NSException class for handling validating errors and augmenting an exception's userInfo dictionary. The methods used for validation errors are validationExceptionWithFormat: and aggregateExceptionWithExceptions:. You use validationExceptionWithFormat: in an enterprise object's validateFor... or validateProperty: method, as described in the NSObject Additions class specification. The other method used for validation errors, aggregateExceptionWithExceptions:, is used internally by the Framework to group multiple validation exceptions together.
The method exceptionAddingEntriesToUserInfo: is used to augment an exception's userInfo dictionary.
Class Methods
aggregateExceptionWithExceptions:
+ (NSException *)aggregateExceptionWithExceptions:(NSArray
*)subexceptions
See Also: - exceptionAddingEntriesToUserInfo:
validationExceptionWithFormat:
+ (NSException *)validationExceptionWithFormat:(NSString
*)format,
...
[NSException validationExceptionWithFormat:@"invalid name \"%@\": entity names cannot be nil or empty", name];
Instance Methods
exceptionAddingEntriesToUserInfo:
- (NSException *)exceptionAddingEntriesToUserInfo:(NSDictionary
*)additions