org.wildfly.httpclient.naming.HttpNamingClientMessages_$logger Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.wildfly.httpclient.naming;
import java.util.Locale;
import java.io.Serializable;
import javax.annotation.processing.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.io.InvalidClassException;
import javax.naming.NamingException;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;
/**
* Warning this class consists of generated code.
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-02-14T14:23:50+0100")
public class HttpNamingClientMessages_$logger extends DelegatingBasicLogger implements HttpNamingClientMessages, BasicLogger, Serializable {
private static final long serialVersionUID = 1L;
private static final String FQCN = HttpNamingClientMessages_$logger.class.getName();
public HttpNamingClientMessages_$logger(final Logger log) {
super(log);
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String unexpectedDataInResponse$str() {
return "JNDIWFHTTP000001: Unexpected data in response";
}
@Override
public final NamingException unexpectedDataInResponse() {
final NamingException result = new NamingException(String.format(getLoggingLocale(), unexpectedDataInResponse$str()));
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
protected String atLeastOneUri$str() {
return "JNDIWFHTTP000002: At least one URI must be provided";
}
@Override
public final NamingException atLeastOneUri() {
final NamingException result = new NamingException(String.format(getLoggingLocale(), atLeastOneUri$str()));
_copyStackTraceMinusOne(result);
return result;
}
protected String cannotResolveFilteredClass$str() {
return "JNDIWFHTTP000003: Exception resolving class %s for unmarshalling; it has either been blocklisted or not allowlisted";
}
@Override
public final InvalidClassException cannotResolveFilteredClass(final String clazz) {
final InvalidClassException result = new InvalidClassException(String.format(getLoggingLocale(), cannotResolveFilteredClass$str(), clazz));
_copyStackTraceMinusOne(result);
return result;
}
}