io.smallrye.jwt.auth.cdi.CDIMessages_$bundle Maven / Gradle / Ivy
package io.smallrye.jwt.auth.cdi;
import java.util.Locale;
import java.io.Serializable;
import jakarta.enterprise.inject.spi.InjectionPoint;
import jakarta.enterprise.inject.spi.DeploymentException;
import java.util.Arrays;
/**
* Warning this class consists of generated code.
*/
public class CDIMessages_$bundle implements CDIMessages, Serializable {
private static final long serialVersionUID = 1L;
protected CDIMessages_$bundle() {}
public static final CDIMessages_$bundle INSTANCE = new CDIMessages_$bundle();
protected Object readResolve() {
return INSTANCE;
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String claimHasNoNameOrValidStandardEnumSetting$str() {
return "SRJWT13000: @Claim at: %s has no name or valid standard enum setting";
}
@Override
public final DeploymentException claimHasNoNameOrValidStandardEnumSetting(final InjectionPoint injectionPoint) {
final DeploymentException result = new DeploymentException(String.format(getLoggingLocale(), claimHasNoNameOrValidStandardEnumSetting$str(), injectionPoint));
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
}