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