public class ParseException extends FormattedException
Constructor and Description |
---|
ParseException(Exception causedBy)
Deprecated.
|
ParseException(ObjectMap location,
Exception causedBy)
Deprecated.
|
ParseException(ObjectMap location,
String message,
Object... args)
Deprecated.
|
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. |
ParseException |
initCause(Throwable cause)
Deprecated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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.@Deprecated public ParseException(ObjectMap location, String message, Object... args)
ParseException(ParserSession, String, Object[])
@Deprecated public ParseException(ObjectMap location, Exception causedBy)
ParseException(ParserSession, Exception)
@Deprecated public ParseException(Exception causedBy)
ParseException(ParserSession, Exception)
public ParseException getRootCause()
ParseException
in the stack trace.
Useful for JUnit testing of error conditions.
@Deprecated public ParseException initCause(Throwable cause)
ParseException(ParserSession, Exception)
Copyright © 2018 Apache. All rights reserved.