Spring Data for VMware GemFire
Class RuntimeExceptionFactory
java.lang.Object
org.springframework.data.gemfire.util.RuntimeExceptionFactory
The
RuntimeExceptionFactory class is a factory for creating common RuntimeExceptions
with the added convenience of message formatting and optional causes.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringstatic IllegalArgumentExceptionnewIllegalArgumentException(String message, Object... args) Constructs and initializes anIllegalArgumentExceptionwith the givenmessageandargumentsused to format the message.static IllegalArgumentExceptionnewIllegalArgumentException(Throwable cause, String message, Object... args) Constructs and initializes anIllegalArgumentExceptionwith the givencause,messageandargumentsused to format the message.static IllegalStateExceptionnewIllegalStateException(String message, Object... args) Constructs and initializes anIllegalStateExceptionwith the givenmessageandargumentsused to format the message.static IllegalStateExceptionnewIllegalStateException(Throwable cause, String message, Object... args) Constructs and initializes anIllegalStateExceptionwith the givencause,messageandargumentsused to format the message.static RuntimeExceptionnewRuntimeException(String message, Object... args) Constructs and initializes anRuntimeExceptionwith the givenmessageandargumentsused to format the message.static RuntimeExceptionnewRuntimeException(Throwable cause, String message, Object... args) Constructs and initializes anRuntimeExceptionwith the givencause,messageandargumentsused to format the message.newUnsupportedOperationException(String message, Object... args) Constructs and initializes anUnsupportedOperationExceptionwith the givenmessageandargumentsused to format the message.newUnsupportedOperationException(Throwable cause, String message, Object... args) Constructs and initializes anUnsupportedOperationExceptionwith the givencause,messageandargumentsused to format the message.
-
Field Details
-
NOT_IMPLEMENTED
- See Also:
-
NOT_SUPPORTED
- See Also:
-
-
Constructor Details
-
RuntimeExceptionFactory
public RuntimeExceptionFactory()
-
-
Method Details
-
newIllegalArgumentException
Constructs and initializes anIllegalArgumentExceptionwith the givenmessageandargumentsused to format the message. -
newIllegalArgumentException
public static IllegalArgumentException newIllegalArgumentException(Throwable cause, String message, Object... args) Constructs and initializes anIllegalArgumentExceptionwith the givencause,messageandargumentsused to format the message.- Parameters:
cause-Throwableidentifying the reason theIllegalArgumentExceptionwas thrown.message-Stringdescribing theexception.args-argumentsused to replace format placeholders in themessage.- Returns:
- a new
IllegalArgumentExceptionwith the givencauseandmessage. - See Also:
-
newIllegalStateException
Constructs and initializes anIllegalStateExceptionwith the givenmessageandargumentsused to format the message. -
newIllegalStateException
public static IllegalStateException newIllegalStateException(Throwable cause, String message, Object... args) Constructs and initializes anIllegalStateExceptionwith the givencause,messageandargumentsused to format the message.- Parameters:
cause-Throwableidentifying the reason theIllegalStateExceptionwas thrown.message-Stringdescribing theexception.args-argumentsused to replace format placeholders in themessage.- Returns:
- a new
IllegalStateExceptionwith the givencauseandmessage. - See Also:
-
newRuntimeException
Constructs and initializes anRuntimeExceptionwith the givenmessageandargumentsused to format the message. -
newRuntimeException
Constructs and initializes anRuntimeExceptionwith the givencause,messageandargumentsused to format the message.- Parameters:
cause-Throwableidentifying the reason theRuntimeExceptionwas thrown.message-Stringdescribing theexception.args-argumentsused to replace format placeholders in themessage.- Returns:
- a new
RuntimeExceptionwith the givencauseandmessage. - See Also:
-
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(String message, Object... args) Constructs and initializes anUnsupportedOperationExceptionwith the givenmessageandargumentsused to format the message. -
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(Throwable cause, String message, Object... args) Constructs and initializes anUnsupportedOperationExceptionwith the givencause,messageandargumentsused to format the message.- Parameters:
cause-Throwableidentifying the reason theUnsupportedOperationExceptionwas thrown.message-Stringdescribing theexception.args-argumentsused to replace format placeholders in themessage.- Returns:
- a new
UnsupportedOperationExceptionwith the givencauseandmessage. - See Also:
-
format
-