Browse files

Export error domain - thanks to Roger Nolan!

  • Loading branch information...
1 parent 2d5ba6d commit 5ed9ff308e70f20019d3769ed45426346dd716ba @pokeb committed May 31, 2009
Showing with 4 additions and 1 deletion.
  1. +3 −0 Classes/ASIHTTPRequest.h
  2. +1 −1 Classes/ASIHTTPRequest.m
View
3 Classes/ASIHTTPRequest.h
@@ -17,6 +17,7 @@
#endif
#import <stdio.h>
+
typedef enum _ASINetworkErrorType {
ASIConnectionFailureErrorType = 1,
ASIRequestTimedOutErrorType = 2,
@@ -29,6 +30,8 @@ typedef enum _ASINetworkErrorType {
} ASINetworkErrorType;
+extern NSString* const NetworkRequestErrorDomain;
+
@interface ASIHTTPRequest : NSOperation {
// The url for this operation, should include GET params in the query string where appropriate
View
2 Classes/ASIHTTPRequest.m
@@ -17,7 +17,7 @@
// We use our own custom run loop mode as CoreAnimation seems to want to hijack our threads otherwise
static CFStringRef ASIHTTPRequestRunMode = CFSTR("ASIHTTPRequest");
-static NSString *NetworkRequestErrorDomain = @"com.Your-Company.Your-Product.NetworkError.";
+NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
static const CFOptionFlags kNetworkEvents = kCFStreamEventOpenCompleted | kCFStreamEventHasBytesAvailable | kCFStreamEventEndEncountered | kCFStreamEventErrorOccurred;

0 comments on commit 5ed9ff3

Please sign in to comment.