com.signalfx.signalflow.SignalFlowException 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!
/*
* Copyright (C) 2016-2018 SignalFx, Inc. All rights reserved.
*/
package com.signalfx.signalflow;
/**
* A generic error encountered when interacting with the SignalFx SignalFlow API.
*
* @author dgriff
*/
public class SignalFlowException extends RuntimeException {
private static final long serialVersionUID = 1L;
protected int code = 0;
public SignalFlowException(int code, String message) {
super(message);
this.code = code;
}
public SignalFlowException(String message) {
super(message);
}
public SignalFlowException(String message, Throwable cause) {
super(message, cause);
}
public SignalFlowException(int code, String message, Throwable cause) {
super(message, cause);
this.code = code;
}
public int getCode() {
return this.code;
}
public void setCode(int code) {
this.code = code;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy