public final class BeanRuntimeException extends FormattedRuntimeException
Constructor and Description |
---|
BeanRuntimeException(Class<?> c,
String message,
Object... args)
Shortcut for calling
|
BeanRuntimeException(String message)
Constructor.
|
BeanRuntimeException(String message,
Object... args)
Constructor.
|
BeanRuntimeException(Throwable cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BeanRuntimeException |
initCause(Throwable cause)
Sets the inner cause for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BeanRuntimeException(String message)
message
- The error message.public BeanRuntimeException(String message, Object... args)
message
- The error message.args
- Arguments passed in to the String.format()
method.public BeanRuntimeException(Class<?> c, String message, Object... args)
new BeanRuntimeException(String.format(c.getName() + ": " + message, args));
c
- The class name of the bean that caused the exception.message
- The error message.args
- Arguments passed in to the String.format()
method.public BeanRuntimeException(Throwable cause)
cause
- The initial cause of the exception.public BeanRuntimeException initCause(Throwable cause)
Copyright © 2018 Apache. All rights reserved.