adding adNetwork SDKs for AdWhirl and AdMob
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
|
||||
AdWhirlError.m
|
||||
|
||||
Copyright 2009 AdMob, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
#import "AdWhirlError.h"
|
||||
|
||||
@implementation AdWhirlError
|
||||
|
||||
+ (AdWhirlError *)errorWithCode:(NSInteger)code userInfo:(NSDictionary *)dict {
|
||||
return [[[AdWhirlError alloc] initWithCode:code userInfo:dict] autorelease];
|
||||
}
|
||||
|
||||
+ (AdWhirlError *)errorWithCode:(NSInteger)code description:(NSString *)desc {
|
||||
return [[[AdWhirlError alloc] initWithCode:code description:desc] autorelease];
|
||||
}
|
||||
|
||||
+ (AdWhirlError *)errorWithCode:(NSInteger)code description:(NSString *)desc underlyingError:(NSError *)uError {
|
||||
return [[[AdWhirlError alloc] initWithCode:code description:desc underlyingError:uError] autorelease];
|
||||
}
|
||||
|
||||
- (id)initWithCode:(NSInteger)code userInfo:(NSDictionary *)dict {
|
||||
return [super initWithDomain:AdWhirlErrorDomain code:code userInfo:dict];
|
||||
}
|
||||
|
||||
- (id)initWithCode:(NSInteger)code description:(NSString *)desc {
|
||||
NSDictionary *eInfo = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
desc, NSLocalizedDescriptionKey,
|
||||
nil];
|
||||
return [super initWithDomain:AdWhirlErrorDomain code:code userInfo:eInfo];
|
||||
}
|
||||
|
||||
- (id)initWithCode:(NSInteger)code description:(NSString *)desc underlyingError:(NSError *)uError {
|
||||
NSDictionary *eInfo = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
desc, NSLocalizedDescriptionKey,
|
||||
uError, NSUnderlyingErrorKey,
|
||||
nil];
|
||||
return [super initWithDomain:AdWhirlErrorDomain code:code userInfo:eInfo];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user