mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
24 lines
518 B
Objective-C
24 lines
518 B
Objective-C
//
|
|
// NSError+Messages.h
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 04.09.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
FOUNDATION_EXPORT NSString *const MPErrorDomain;
|
|
|
|
typedef NS_ENUM(NSInteger, MPErrorCodes) {
|
|
MPErrorNoPasswordOrKeyFile = 10000,
|
|
};
|
|
|
|
@interface NSError (Messages)
|
|
|
|
+ (NSError *)errorWithCode:(NSInteger)code description:(NSString *)description;
|
|
|
|
@property (nonatomic, readonly, copy) NSString *descriptionForErrorCode;
|
|
|
|
@end
|