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

io.smallrye.reactive.messaging.gcp.pubsub.i18n.PubSubExceptions_$bundle Maven / Gradle / Ivy

The newest version!
package io.smallrye.reactive.messaging.gcp.pubsub.i18n;

import java.util.Locale;
import java.lang.IllegalStateException;
import java.io.Serializable;
import java.lang.Throwable;
import java.util.Arrays;

/**
 * Warning this class consists of generated code.
 */
public class PubSubExceptions_$bundle implements PubSubExceptions, Serializable {
    private static final long serialVersionUID = 1L;
    protected PubSubExceptions_$bundle() {}
    public static final PubSubExceptions_$bundle INSTANCE = new PubSubExceptions_$bundle();
    protected Object readResolve() {
        return INSTANCE;
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    protected String illegalStateUnableToBuildSubscriptionAdminClient$str() {
        return "SRMSG14600: Unable to build pub/sub subscription admin client";
    }
    @Override
    public final IllegalStateException illegalStateUnableToBuildSubscriptionAdminClient(final Throwable t) {
        final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), illegalStateUnableToBuildSubscriptionAdminClient$str()), t);
        _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 illegalStateUnableToBuildTopicAdminClient$str() {
        return "SRMSG14601: Unable to build pub/sub topic admin client";
    }
    @Override
    public final IllegalStateException illegalStateUnableToBuildTopicAdminClient(final Throwable t) {
        final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), illegalStateUnableToBuildTopicAdminClient$str()), t);
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String illegalStateUnableToBuildPublisher$str() {
        return "SRMSG14602: Unable to build pub/sub publisher";
    }
    @Override
    public final IllegalStateException illegalStateUnableToBuildPublisher(final Throwable t) {
        final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), illegalStateUnableToBuildPublisher$str()), t);
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy