|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.ErrorStruct
Class for storing error information useful in parsing.
Information that can be stored inlcudes the error type, column and
line number of the parsed text where the error occurred, and a message.
used by the Config module when parsing XML files.
| Constructor Summary | |
ErrorStruct(int line,
int col,
java.lang.String msg)
Creates an error structure, with errortype "none". |
|
ErrorStruct(java.lang.String errorType,
int line,
int col,
java.lang.String msg)
Creates an error structure. |
|
| Method Summary | |
int |
getColumnNumber()
Returns the column number in the parsed source (file or textbuffer) where the error occurred. |
java.lang.String |
getErrorType()
Returns the error type. |
int |
getLineNumber()
Returns the line number in the parsed source (file or textbuffer) where the error occurred. |
java.lang.String |
getMessage()
Returns a more detailed error message. |
java.lang.String |
toString()
prints the ErrorStruct |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ErrorStruct(int line,
int col,
java.lang.String msg)
line - the line number where the error occurredcol - the column number where the error occurredmsg - the error message
public ErrorStruct(java.lang.String errorType,
int line,
int col,
java.lang.String msg)
errorType - the type of error,line - the line number where the error occurredcol - the column number where the error occurredmsg - the error message| Method Detail |
public java.lang.String getErrorType()
public int getLineNumber()
public int getColumnNumber()
public java.lang.String getMessage()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||