org.wildfly.security.auth.util.ElytronMessages_$logger Maven / Gradle / Ivy
The newest version!
package org.wildfly.security.auth.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 java.io.IOException;
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:57-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 patternRequiresCaptureGroup$str() {
return "ELY01065: Pattern requires a capture group";
}
@Override
public final IllegalArgumentException patternRequiresCaptureGroup() {
final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), patternRequiresCaptureGroup$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 xmlFailedToCreateCredential$str() {
return "ELY17000: Failed to create credential";
}
@Override
public final IOException xmlFailedToCreateCredential(final Throwable cause) {
final IOException result = new IOException(String.format(getLoggingLocale(), xmlFailedToCreateCredential$str()), cause);
_copyStackTraceMinusOne(result);
return result;
}
}