ml.comet.experiment.impl.rest.CometWebException Maven / Gradle / Ivy
package ml.comet.experiment.impl.rest;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CometWebException extends RuntimeException {
private int code;
private String msg;
private String logMsg;
private Map params;
public CometWebException(int code, String msg) {
this.code = code;
this.msg = msg;
}
@Override
public String getMessage() {
return getMsg();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy