Package org.apache.juneau.marshall
Class BasicRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.BasicRuntimeException
org.apache.juneau.marshall.BasicRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BasicHttpException,ClassMetaRuntimeException,ConfigException,ContextRuntimeException,InvalidDataConversionException,MethodNotAllowlistedException,ParseException,PathTraversalException,RemoteMetadataException,SerializeException
Subclass of runtime exceptions that take in a message and zero or more arguments.
This class extends BasicRuntimeException in juneau-commons
for backward compatibility.
-
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 org.apache.juneau.commons.BasicRuntimeException
getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BasicRuntimeException
Constructor.- Parameters:
message- TheString.format-style message (%s placeholders).args- OptionalString.format-style arguments.
-
BasicRuntimeException
Constructor.- Parameters:
cause- The cause of this exception. Can benull (no cause is set).
-
BasicRuntimeException
Constructor.- Parameters:
cause- The cause of this exception. Can benull (no cause is set).message- TheString.format-style message (%s placeholders).args- OptionalString.format-style arguments.
-
-
Method Details
-
setMessage
Description copied from class:BasicRuntimeExceptionSets the detail message on this exception.- Overrides:
setMessagein classBasicRuntimeException- Parameters:
message- The message.args- The message args.- Returns:
- This object.
-