public class ParseException extends FormattedException
Constructor and Description |
---|
ParseException(ParserSession session,
Exception causedBy)
Constructor.
|
ParseException(ParserSession session,
String message,
Object... args)
Constructor.
|
ParseException(ParserSession session,
Throwable causedBy,
String message,
Object... args)
Constructor.
|
ParseException(String message,
Object... args)
Constructor.
|
ParseException(Throwable causedBy)
Constructor.
|
ParseException(Throwable causedBy,
String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ParseException |
getRootCause()
Returns the highest-level
ParseException in the stack trace. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String message, Object... args)
message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public ParseException(Throwable causedBy, String message, Object... args)
causedBy
- The cause of this exception.message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public ParseException(Throwable causedBy)
causedBy
- The cause of this exception.public ParseException(ParserSession session, String message, Object... args)
session
- The parser session.message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public ParseException(ParserSession session, Throwable causedBy, String message, Object... args)
session
- The parser session.causedBy
- The cause of this exception.message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public ParseException(ParserSession session, Exception causedBy)
session
- The parser session.causedBy
- The inner exception.public ParseException getRootCause()
ParseException
in the stack trace.
Useful for JUnit testing of error conditions.
Copyright © 2018 Apache. All rights reserved.