|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.objectweb.fractal.adl.ParserException
Thrown when loading, parsing, checking or constructing a type or a template definition.
| Constructor Summary | |
ParserException(String src,
int line,
String msg,
Throwable exception)
Constructs a new ParserException. |
|
ParserException(String msg,
Throwable exception)
Constructs a new ParserException. |
|
ParserException(XMLElement src,
ParserException exception)
Constructs a new ParserException. |
|
ParserException(XMLElement src,
String msg,
Throwable exception)
Constructs a new ParserException. |
|
| Method Summary | |
Throwable |
getException()
Returns the exception that is wrapped in this exception. |
int |
getLine()
Returns the line number in getSource where this
exception occured. |
String |
getSource()
Returns the name of the file where this exception occured. |
void |
printStackTrace()
Prints the stack backtrace. |
void |
printStackTrace(PrintStream s)
Prints this exception and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this exception and its backtrace to the specified print writer. |
String |
toString()
Returns a String representation of this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ParserException(String src,
int line,
String msg,
Throwable exception)
ParserException.
src - the file where this exception occured. May be null.line - the line number where this exception occured.msg - a detail error message.exception - a wrapped exception. May be null.
public ParserException(XMLElement src,
String msg,
Throwable exception)
ParserException.
src - the XML element where this exception occured.msg - a detail error message.exception - a wrapped exception. May be null.
public ParserException(XMLElement src,
ParserException exception)
ParserException.
src - the XML element where this exception occured.exception - a wrapped parser exception.
public ParserException(String msg,
Throwable exception)
ParserException.
msg - a detail error message.exception - a wrapped exception. May be null.| Method Detail |
public String getSource()
public int getLine()
getSource where this
exception occured.
getSource where this
exception occured.public Throwable getException()
public String toString()
public void printStackTrace()
public void printStackTrace(PrintStream s)
s - PrintStream to use for output.public void printStackTrace(PrintWriter s)
s - PrintWriter to use for output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||