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 |
|---|---|
static ParseException |
create(Throwable e)
Creator method.
|
ParseException |
getRootCause()
Returns the highest-level
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 static ParseException create(Throwable e)
If the throwable is already a ParseException, we simply return that exception as-is.
If the throwable is an InvocationTargetException, we unwrap the thrown exception.
Otherwise we create a new ParseException.
e - The exception being wrapped or unwrapped.SerializeException.public ParseException getRootCause()
Useful for JUnit testing of error conditions.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.