public class FormattedRuntimeException extends RuntimeException
Constructor and Description |
---|
FormattedRuntimeException(String message,
Object... args)
Constructor.
|
FormattedRuntimeException(Throwable cause,
String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
getMessage(Throwable cause,
String msg,
String def)
Finds the message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FormattedRuntimeException(String message, Object... args)
message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public FormattedRuntimeException(Throwable cause, String message, Object... args)
cause
- The cause of this exception.message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.protected static final String getMessage(Throwable cause, String msg, String def)
cause
- The cause.msg
- The message.def
- The default value if both above are Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.