/Error.m
Objective C | 35 lines | 18 code | 10 blank | 7 comment | 1 complexity | de587725b79993628562f8dcf3952501 MD5 | raw file
- //
- // Error.m
- // UmlGo
- //
- // Created by Jacob Rhoden on 16/08/09.
- // Copyright 2009 __MyCompanyName__. All rights reserved.
- //
- #import "Error.h"
- @implementation Error
- @synthesize error, line, column, length;
- -(id) initWith: (NSString*) errorText line: (int) errorLine column: (int) errorColumn length: (int) errorLength {
- if(!(self = [super init]))
- return self;
-
- error = errorText;
- line = errorLine;
- column = errorColumn;
- length = errorLength;
- NSLog(@"Error(%d,%d) %@",line,column,error);
- return self;
- }
- -(void) dealloc {
- [error release];
- [super dealloc];
- }
- @end