org.wildfly.httpclient.naming.HttpNamingClientMessages_$logger Maven / Gradle / Ivy
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 = "2022-08-10T14:52:40-0300")
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;
}
}