All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.httpclient.naming.HttpNamingClientMessages_$logger Maven / Gradle / Ivy

There is a newer version: 2.0.7.Final
Show newest version
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 = "2023-11-08T22:48:14+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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy