PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Error.m

https://github.com/corydoras/SgmlParseAndSplit
Objective C | 35 lines | 18 code | 10 blank | 7 comment | 1 complexity | de587725b79993628562f8dcf3952501 MD5 | raw file
  1. //
  2. // Error.m
  3. // UmlGo
  4. //
  5. // Created by Jacob Rhoden on 16/08/09.
  6. // Copyright 2009 __MyCompanyName__. All rights reserved.
  7. //
  8. #import "Error.h"
  9. @implementation Error
  10. @synthesize error, line, column, length;
  11. -(id) initWith: (NSString*) errorText line: (int) errorLine column: (int) errorColumn length: (int) errorLength {
  12. if(!(self = [super init]))
  13. return self;
  14. error = errorText;
  15. line = errorLine;
  16. column = errorColumn;
  17. length = errorLength;
  18. NSLog(@"Error(%d,%d) %@",line,column,error);
  19. return self;
  20. }
  21. -(void) dealloc {
  22. [error release];
  23. [super dealloc];
  24. }
  25. @end