Package org.apache.juneau
Class BasicRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BasicHttpException,ClassMetaRuntimeException,ConfigException,ContextRuntimeException,InvalidAnnotationException,InvalidDataConversionException,ObjectRestException,ParseException,PatternException,RemoteMetadataException,SerializeException,VarResolverException
Subclass of runtime exceptions that take in a message and zero or more arguments.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicRuntimeException(String message, Object... args) Constructor.BasicRuntimeException(Throwable cause) Constructor.BasicRuntimeException(Throwable cause, String message, Object... args) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionsetMessage(String message, Object... args) Sets the detail message on this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BasicRuntimeException
Constructor.- Parameters:
message- TheMessageFormat-style message.args- OptionalMessageFormat-style arguments.
-
BasicRuntimeException
Constructor.- Parameters:
cause- The cause of this exception.
-
BasicRuntimeException
Constructor.- Parameters:
cause- The cause of this exception.message- TheMessageFormat-style message.args- OptionalMessageFormat-style arguments.
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
setMessage
Sets the detail message on this exception.- Parameters:
message- The message.args- The message args.- Returns:
- This object.
-