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

com.hp.octane.integrations.exceptions.OctaneBulkException 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.OctaneBulkExceptionData;

public class OctaneBulkException extends RuntimeException {

    private OctaneBulkExceptionData data;
    private int responseStatus;

    public OctaneBulkException(int responseStatus, OctaneBulkExceptionData data) {
        super(data.getErrors().size() == 1
                ? data.getErrors().get(0).getDescription()
                : data.getErrors().size() + " exceptions occurred on Octane side.");
        this.data = data;
        this.responseStatus = responseStatus;
    }

    public OctaneBulkExceptionData getData() {
        return data;
    }

    public int getResponseStatus() {
        return responseStatus;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy