1 10 package org.mmbase.util; 11 12 22 public class ErrorStruct { 23 24 String errorType; 26 int line; 28 int col; 30 String msg; 32 33 39 public ErrorStruct(int line, int col, String msg) { 40 this("none",line,col,msg); 41 } 42 43 50 public ErrorStruct(String errorType, int line, int col, String msg) { 51 this.errorType = errorType; 52 this.line = line; 53 this.col = col; 54 this.msg = msg; 55 } 56 57 61 public String getErrorType() { 62 return errorType; 63 } 64 65 69 public int getLineNumber() { 70 return line; 71 } 72 73 77 public int getColumnNumber() { 78 return col; 79 } 80 81 84 public String getMessage() { 85 return msg; 86 } 87 88 91 public String toString() { 92 return "ErrorStruct: type="+errorType+" line="+line+" position="+col+" message="+msg; 93 } 94 } 95 | Popular Tags |