//
//  MPParseError.h
//  MathPad
//
//  Created by Kim Wittenburg on 06.09.14.
//  Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//

#import <Foundation/Foundation.h>

#define MPParseError(index,key) [[MPParseError alloc] initWithErrorIndex:index errorMessageKey:key]

@interface MPParseError : NSObject

- (instancetype)initWithErrorIndex:(NSUInteger)errorIndex
                   errorMessageKey:(NSString *)errorMessageKey;

@property (nonatomic) NSUInteger errorIndex;
@property (nonatomic) NSString *localizedErrorMessage;

@end