Implemented Evaluation
This commit is contained in:
28
MathPad/MPParseError.m
Normal file
28
MathPad/MPParseError.m
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// MPParseError.m
|
||||
// MathPad
|
||||
//
|
||||
// Created by Kim Wittenburg on 06.09.14.
|
||||
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPParseError.h"
|
||||
|
||||
@implementation MPParseError
|
||||
|
||||
- (instancetype)initWithErrorIndex:(NSUInteger)errorIndex errorMessageKey:(NSString *)errorMessageKey
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_errorIndex = errorIndex;
|
||||
_localizedErrorMessage = NSLocalizedString(errorMessageKey, nil);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)description
|
||||
{
|
||||
return [NSString stringWithFormat:@"MPParseError<at=%ld message=\"%@\">", self.errorIndex, self.localizedErrorMessage];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user