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

org.wildfly.security.permission.SecurityMessages_$logger Maven / Gradle / Ivy

The newest version!
package org.wildfly.security.permission;

import java.util.Locale;
import java.io.Serializable;
import javax.annotation.Generated;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;
import java.lang.IllegalArgumentException;

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-09-20T10:43:06-0400")
public class SecurityMessages_$logger implements SecurityMessages, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = SecurityMessages_$logger.class.getName();
    public SecurityMessages_$logger(final Logger log) {
        this.log = log;
    }
    protected final Logger log;
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    protected String unexpectedActionCharacter$str() {
        return "WFSM000004: Unexpected character '%s' at offset %d of '%s'";
    }
    @Override
    public final IllegalArgumentException unexpectedActionCharacter(final char ch, final int offset, final String actionString) {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), unexpectedActionCharacter$str(), ch, offset, actionString));
        _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 invalidAction$str() {
        return "WFSM000005: Invalid action '%s' at offset %d of '%s'";
    }
    @Override
    public final IllegalArgumentException invalidAction(final String action, final int offset, final String actionString) {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), invalidAction$str(), action, offset, actionString));
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy