session-ios/Signal/src/util/constraints/BadArgument.m
2014-05-06 19:41:08 +02:00

10 lines
298 B
Objective-C

#import "BadArgument.h"
@implementation BadArgument
+(BadArgument*) new:(NSString*)reason {
return [[BadArgument alloc] initWithName:@"Invalid Argument" reason:reason userInfo:nil];
}
+(void)raise:(NSString *)message {
[BadArgument raise:@"Invalid Argument" format:@"%@", message];
}
@end