Package org.apache.juneau.marshall
Class ClassMetaRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.BasicRuntimeException
org.apache.juneau.marshall.BasicRuntimeException
org.apache.juneau.marshall.ClassMetaRuntimeException
- All Implemented Interfaces:
Serializable
General class metadata runtime operation exception.
-
Constructor Summary
ConstructorsConstructorDescriptionClassMetaRuntimeException(Class<?> c, String message, Object... args) Shortcut for callingnew ClassMetaRuntimeException(String.format(c.getName() +": " + message, args));ClassMetaRuntimeException(String message) Constructor.ClassMetaRuntimeException(String message, Object... args) Constructor.Constructor.ClassMetaRuntimeException(Throwable cause, Class<?> c, 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
-
ClassMetaRuntimeException
Shortcut for callingnew ClassMetaRuntimeException(String.format(c.getName() +": " + message, args));- Parameters:
c- The class name of the bean that caused the exception. Can benull (omits the class-name prefix).message- The error message.args- Arguments passed in to theString.format()method.
-
ClassMetaRuntimeException
Constructor.- Parameters:
message- The error message.
-
ClassMetaRuntimeException
Constructor.- Parameters:
message- The error message.args- Arguments passed in to theString.format()method.
-
ClassMetaRuntimeException
Constructor.- Parameters:
cause- The initial cause of the exception. Can benull (no cause is set).
-
ClassMetaRuntimeException
Constructor.- Parameters:
cause- The cause of this exception. Can benull (no cause is set).c- The class name of the bean that caused the exception. Can benull (omits the class-name prefix).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.
-