io.getunleash.UnleashException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-client-java Show documentation
Show all versions of unleash-client-java Show documentation
A client library for Unleash
package io.getunleash;
import io.getunleash.event.UnleashEvent;
import io.getunleash.event.UnleashSubscriber;
import io.getunleash.lang.Nullable;
public class UnleashException extends RuntimeException implements UnleashEvent {
public UnleashException(String message, @Nullable Throwable cause) {
super(message, cause);
}
@Override
public void publishTo(UnleashSubscriber unleashSubscriber) {
unleashSubscriber.onError(this);
}
}