Clean up root folder.
[enjoyable.git] / Categories / NSError+Description.m
diff --git a/Categories/NSError+Description.m b/Categories/NSError+Description.m
new file mode 100644 (file)
index 0000000..126bb17
--- /dev/null
@@ -0,0 +1,13 @@
+#import "NSError+Description.h"
+
+@implementation NSError (Description)
+
++ (NSError *)errorWithDomain:(NSString *)domain
+                        code:(NSInteger)code
+                 description:(NSString *)description {
+    NSDictionary *errorDict = @{ NSLocalizedDescriptionKey : description };
+    return [NSError errorWithDomain:domain code:code userInfo:errorDict];
+
+}
+
+@end