OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
6 #define CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 6 #define CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 @interface NSError (ChromeInstallerAdditions) | 10 @interface NSError (ChromeInstallerAdditions) |
| 11 // Creates a custom error object to be used as the popup alert that the user |
| 12 // will be shown. |
11 + (NSError*)errorForAlerts:(NSString*)message | 13 + (NSError*)errorForAlerts:(NSString*)message |
12 withDescription:(NSString*)description | 14 withDescription:(NSString*)description |
13 isRecoverable:(BOOL)recoverable; | 15 isRecoverable:(BOOL)recoverable; |
14 @end | 16 @end |
15 | 17 |
16 #endif // CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 18 #endif // CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
OLD | NEW |