-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtils.h
More file actions
34 lines (28 loc) · 808 Bytes
/
Utils.h
File metadata and controls
34 lines (28 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Utils.h
// ClangFormatForXcode
//
// Created by Tareq A. Siraj on 12/14/2013.
// Copyright (c) 2013 Tareq A. Siraj. All rights reserved.
//
#import <Foundation/Foundation.h>
#define ERROR_DOMAIN @"com.tasiraj.ClangFormatForXcode"
// Utility class that provides useful helpers.
@interface Utils : NSObject
// Pop an alert dialog.
//
// |msg| - The message to alert with.
+ (void)alert:(NSString *)msg;
// Pop an alert dialog with an error.
//
// |error| - The error object to alert with.
+ (void)alertWithError:(NSError *)error;
// Creates an error object.
//
// |errorStr| - The error string.
// |code| - The error code.
//
// Returns the created NSError object.
+ (NSError *)createError:(NSString *)errorStr;
+ (NSError *)createError:(NSString *)errorStr withErrorCode:(NSInteger)code;
@end