|
||||||||||
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.apache.maven.doxia.parser.ParseException
public class ParseException
Encapsulate a Doxia parse error.
Constructor Summary | |
---|---|
ParseException(java.lang.Exception e)
Constructs a new exception with the specified cause. |
|
ParseException(java.lang.Exception e,
java.lang.String file,
int line)
Construct a new ParseException with the specified cause, filename and linenumber. |
|
ParseException(java.lang.Exception e,
java.lang.String message,
java.lang.String file,
int line)
Construct a new ParseException with the specified cause, detail message, filename and linenumber. |
|
ParseException(java.lang.String message)
Construct a new ParseException with the specified detail message. |
|
ParseException(java.lang.String message,
java.lang.Exception e)
Construct a new ParseException with the specified detail message and cause. |
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns the file that caused the ParseException. |
int |
getLineNumber()
Returns the line number where the ParseException ocurred. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParseException(java.lang.String message)
message
- The detailed message.
This can later be retrieved by the Throwable.getMessage() method.public ParseException(java.lang.String message, java.lang.Exception e)
message
- The detailed message.
This can later be retrieved by the Throwable.getMessage() method.e
- the cause. This can be retrieved later by the Throwable.getCause() method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)public ParseException(java.lang.Exception e)
e
- the cause. This can be retrieved later by the Throwable.getCause() method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)public ParseException(java.lang.Exception e, java.lang.String file, int line)
e
- the cause. This can be retrieved later by the Throwable.getCause() method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)file
- Name of a file that couldn't be parsed.
This can later be retrieved by the getFileName() method.line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.public ParseException(java.lang.Exception e, java.lang.String message, java.lang.String file, int line)
e
- the cause. This can be retrieved later by the Throwable.getCause() method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)message
- The detailed message.
This can later be retrieved by the Throwable.getMessage() method.file
- Name of a file that couldn't be parsed.
This can later be retrieved by the getFileName() method.line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.Method Detail |
---|
public java.lang.String getFileName()
public int getLineNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |