public class ParseException extends FormattedException
Constructor and Description |
---|
ParseException(Exception causedBy)
Constructor.
|
ParseException(ObjectMap location,
Exception causedBy)
Constructor.
|
ParseException(ObjectMap location,
String message,
Object... args)
Constructor.
|
ParseException(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)
Sets the inner cause for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(ObjectMap location, String message, Object... args)
location
- The location of the parse exception.message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public ParseException(String message, Object... args)
message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public ParseException(ObjectMap location, Exception causedBy)
location
- The location of the parse exception.causedBy
- The inner exception.public ParseException(Exception causedBy)
causedBy
- The inner exception.public ParseException getRootCause()
ParseException
in the stack trace.
Useful for JUnit testing of error conditions.
public ParseException initCause(Throwable cause)
Copyright © 2018 Apache. All rights reserved.