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

com.manywho.sdk.api.run.ServiceProblem Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.manywho.sdk.api.run;

import com.manywho.sdk.api.InvokeType;

public class ServiceProblem extends ApiProblem {
    private InvokeType invokeType;
    private String action;

    public ServiceProblem() {
    }

    public ServiceProblem(ServiceProblemException serviceProblemException) {
        this(serviceProblemException, serviceProblemException.getInvokeType(), serviceProblemException.getAction());
    }

    public ServiceProblem(ApiProblemException apiProblemException, InvokeType invokeType, String action) {
        super(ProblemKind.Service, apiProblemException);
        this.invokeType = invokeType;
        this.action = action;
    }

    public ServiceProblem(String uri, int statusCode, String message) {
        super(ProblemKind.Service, uri, statusCode, message);
    }

    public InvokeType getInvokeType() {
        return invokeType;
    }

    public String getAction() {
        return action;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy