mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
10 lines
298 B
Objective-C
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
|