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

com.signalfx.metrics.errorhandler.MetricErrorImpl Maven / Gradle / Ivy

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