|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.makumba.MakumbaError
org.makumba.DefinitionParseError
public abstract class DefinitionParseError
This class provides basic support for definition parse errors.
Field Summary | |
---|---|
protected int |
column
|
protected Vector<DefinitionParseError> |
components
|
protected String |
line
|
protected Hashtable<String,DefinitionParseError> |
lines
|
protected String |
typeName
|
Constructor Summary | |
---|---|
DefinitionParseError()
|
|
DefinitionParseError(String explanation)
|
|
DefinitionParseError(String typeName,
String reason,
String line)
Construct a message for a line |
|
DefinitionParseError(Throwable reason)
|
|
DefinitionParseError(Throwable reason,
String expl)
|
Method Summary | |
---|---|
void |
add(DefinitionParseError e)
add another error to the main error |
String |
getMessage()
If the error is single, call the default action, else compose all components' messages |
String |
getTypeName()
return the type for which the error occured |
boolean |
isSingle()
tells whether this error is empty or contains sub-errors |
static StringBuffer |
pointError(int column)
put a marker for a given column |
protected static String |
showTypeName(String typeName)
|
Methods inherited from class org.makumba.MakumbaError |
---|
printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int column
protected Vector<DefinitionParseError> components
protected String line
protected Hashtable<String,DefinitionParseError> lines
protected String typeName
Constructor Detail |
---|
public DefinitionParseError()
public DefinitionParseError(String typeName, String reason, String line)
public DefinitionParseError(String explanation)
public DefinitionParseError(Throwable reason)
public DefinitionParseError(Throwable reason, String expl)
Method Detail |
---|
public static StringBuffer pointError(int column)
protected static String showTypeName(String typeName)
public void add(DefinitionParseError e)
public String getMessage()
getMessage
in class Throwable
public boolean isSingle()
public String getTypeName()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |