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

com.hp.octane.integrations.exceptions.OctaneRestException Maven / Gradle / Ivy

There is a newer version: 2.24.3.5
Show newest version
package com.hp.octane.integrations.exceptions;

import com.hp.octane.integrations.dto.entities.OctaneRestExceptionData;
import com.hp.octane.integrations.utils.SdkStringUtils;

public class OctaneRestException extends RuntimeException {
    private OctaneRestExceptionData data;
    private int responseStatus;

    public OctaneRestException(int responseStatus, OctaneRestExceptionData data) {
        super(SdkStringUtils.isNotEmpty(data.getDescriptionTranslated()) ? data.getDescriptionTranslated() : data.getDescription());
        this.data = data;
        this.responseStatus = responseStatus;
    }

    public OctaneRestExceptionData getData() {
        return data;
    }

    public int getResponseStatus() {
        return responseStatus;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy