com.signalfx.metrics.errorhandler.MetricErrorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx-codahale Show documentation
Show all versions of signalfx-codahale Show documentation
Dropwizard Codahale metrics plugin for signalfx
The newest version!
package com.signalfx.metrics.errorhandler;
import com.signalfx.metrics.SignalFxMetricsException;
public class MetricErrorImpl implements MetricError {
private final String message;
private final MetricErrorType code;
private final SignalFxMetricsException signalfxMetricsException;
public MetricErrorImpl(String message, MetricErrorType code, SignalFxMetricsException signalfxMetricsException) {
this.message = message;
this.code = code;
this.signalfxMetricsException = signalfxMetricsException;
}
@Override public MetricErrorType getMetricErrorType() {
return this.code;
}
@Override public String getMessage() {
return this.message;
}
@Override public SignalFxMetricsException getException() {
return this.signalfxMetricsException;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy