org.wildfly.security.http.util.ElytronMessages_$logger Maven / Gradle / Ivy
The newest version!
package org.wildfly.security.http.util;
import java.util.Locale;
import java.io.Serializable;
import javax.annotation.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.lang.Throwable;
import org.jboss.logging.Logger;
import java.util.Arrays;
import org.wildfly.security.mechanism.AuthenticationMechanismException;
/**
* Warning this class consists of generated code.
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-09-20T10:48:10-0400")
public class ElytronMessages_$logger extends DelegatingBasicLogger implements ElytronMessages, BasicLogger, Serializable {
private static final long serialVersionUID = 1L;
private static final String FQCN = ElytronMessages_$logger.class.getName();
public ElytronMessages_$logger(final Logger log) {
super(log);
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String unableToLocateMechanismConfiguration$str() {
return "ELY05172: Unable to locate MechanismConfiguration for mechanism.";
}
@Override
public final AuthenticationMechanismException unableToLocateMechanismConfiguration(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), unableToLocateMechanismConfiguration$str()), cause);
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
}