com.signalfuse.metrics.errorhandler.MetricErrorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfuse-java Show documentation
Show all versions of signalfuse-java Show documentation
Bare minimum core library needed to sending metrics to SignalFuse from Java clients
package com.signalfuse.metrics.errorhandler;
import com.signalfuse.metrics.SignalfuseMetricsException;
public class MetricErrorImpl implements MetricError {
private final String message;
private final MetricErrorType code;
private final SignalfuseMetricsException signalfuseMetricsException;
public MetricErrorImpl(String message, MetricErrorType code, SignalfuseMetricsException signalfuseMetricsException) {
this.message = message;
this.code = code;
this.signalfuseMetricsException = signalfuseMetricsException;
}
@Override public MetricErrorType getMetricErrorType() {
return this.code;
}
@Override public String getMessage() {
return this.message;
}
@Override public SignalfuseMetricsException getException() {
return this.signalfuseMetricsException;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy