@Generated(value="org.jboss.logging.processor.generator.model.MessageBundleImplementor", date="2025-02-27T17:52:06-0800") public class ErrorMessages_$bundle extends Object implements ErrorMessages, Serializable
| Modifier and Type | Field and Description |
|---|---|
static ErrorMessages_$bundle |
INSTANCE |
MESSAGES| Modifier and Type | Method and Description |
|---|---|
CloseException |
closeFailure(Throwable cause,
Closeable c)
Creates an exception indicating a failure to close the
Closeable |
CloseException |
closeFailure(Throwable cause,
Closeable c,
Throwable... errors)
Creates an exception indicating a failure to close the
Closeable |
IllegalArgumentException |
invalidValue(Object value)
Creates an exception indicating the value is invalid.
|
Supplier<String> |
nullParam(String name)
Creates a message indicating the parameter is
null. |
<T extends RuntimeException> |
operationFailed(BiFunction<String,IOException,T> fn,
IOException cause,
String name)
Uses the producer function to create the returned exception indicating the operation has failed.
|
<T extends RuntimeException> |
operationFailed(Function<String,T> fn,
String name)
Uses the producer function to create the returned exception indicating the operation has failed.
|
String |
version(int major,
int minor,
int macro,
String rel)
Returns the internationalized version message.
|
public static final ErrorMessages_$bundle INSTANCE
public final String version(int major, int minor, int macro, String rel)
ErrorMessagesversion in interface ErrorMessagesmajor - the major versionminor - the minor versionmacro - the macro versionrel - the release suffix, e.g. Beta1, Finalpublic final IllegalArgumentException invalidValue(Object value)
ErrorMessagesinvalidValue in interface ErrorMessagesvalue - the invalid valueIllegalStateException for the errorpublic final CloseException closeFailure(Throwable cause, Closeable c)
ErrorMessagesCloseablecloseFailure in interface ErrorMessagescause - the cause of the errorc - the closeable that failedCloseException for the errorpublic final CloseException closeFailure(Throwable cause, Closeable c, Throwable... errors)
ErrorMessagesCloseablecloseFailure in interface ErrorMessagescause - the cause of the errorc - the closeable that failederrors - errors that should be added as suppressed exceptions.CloseException for the errorpublic final Supplier<String> nullParam(String name)
ErrorMessagesnull.
This can be used to lazily format the message for null checks like
Objects.requireNonNull(Object, Supplier).
nullParam in interface ErrorMessagesname - the name of the parameterpublic final <T extends RuntimeException> T operationFailed(Function<String,T> fn, String name)
ErrorMessagesThe formatted value of the message will be the parameter for the functions apply method.
operationFailed in interface ErrorMessagesT - the type of the exception to return, must be assignable to a RuntimeExceptionfn - the function to produce the returned exceptionname - the name of the operation that failedpublic final <T extends RuntimeException> T operationFailed(BiFunction<String,IOException,T> fn, IOException cause, String name)
ErrorMessagesThe formatted value of the message will be the first parameter for the functions BiFunction.apply(Object, Object) apply} method. The second parameter will be the cause.
operationFailed in interface ErrorMessagesT - the type of the exception to return, must be assignable to a RuntimeExceptionfn - the function to produce the returned exceptioncause - the cause of the exception to pass to the functionname - the name of the operation that failedCopyright © 2025 JBoss by Red Hat. All rights reserved.