arq_restore/shared/NSError_extra.m
Stefan Reitshamer cbe20c007e Merged in many changes from Arq mainline development.
(Sorry for the lame commit comment).
2010-08-19 13:25:23 -04:00

16 lines
357 B
Objective-C

//
// NSError_extra.m
// Arq
//
// Created by Stefan Reitshamer on 6/29/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "NSError_extra.h"
@implementation NSError (extra)
- (BOOL)isErrorWithDomain:(NSString *)theDomain code:(int)theCode {
return [self code] == theCode && [[self domain] isEqualToString:theDomain];
}
@end