DyKnow/SignalR-ObjC — Issue #55: Create SignalR Errors Correctly
Author: abillingsley
Created: 2012-02-20 18:42:36+00:00
State: open
Labels: feature

Lets do something like this:

```objC
NSMutableDictionary *errorDetails = [NSMutableDictionary dictionary];
[errorDetails setObject:[NSString stringWithFormat:@"%@",errorDescription] forKey: NSLocalizedDescriptionKey];
[errorDetails setObject:[NSString stringWithFormat:@"%@",failureReason] forKey: NSLocalizedFailureReasonErrorKey]
[errorDetails setObject:[NSString stringWithFormat:@"%@",someRecoverySuggestionIfAvailable] forKey: NSLocalizedRecoverySuggestionErrorKey];

NSError *_error = [NSError errorWithDomain:@"com.SignalR.[ClassName].[ErrorName]" code:[SomeCode or 0] userInfo:errorDetails];
```