com.signalfx.signalflow.ComputationAbortedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx-java Show documentation
Show all versions of signalfx-java Show documentation
Bare minimum core library needed to sending metrics to SignalFx from Java clients
The newest version!
/*
* Copyright (C) 2016 SignalFx, Inc. All rights reserved.
*/
package com.signalfx.signalflow;
import java.util.Map;
/**
* Exception thrown if the computation is aborted during its execution.
*
* @author dgriff
*/
public class ComputationAbortedException extends RuntimeException {
private static final long serialVersionUID = 1L;
protected String state;
protected String reason;
public ComputationAbortedException(Map abortInfo) {
this(abortInfo.get("sf_job_abortState"), abortInfo.get("sf_job_abortReason"));
}
private ComputationAbortedException(String state, String reason) {
super("Computation " + state + ": " + reason);
this.state = state;
this.reason = reason;
}
public String getState() {
return this.state;
}
public String getReason() {
return this.reason;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy