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

com.targomo.client.api.exception.ResponseErrorException Maven / Gradle / Ivy

There is a newer version: 0.42.0
Show newest version
package com.targomo.client.api.exception;

import com.targomo.client.api.response.ResponseCode;
import lombok.Getter;

public class ResponseErrorException extends Exception implements ExceptionCode {

    @Getter
    private final ResponseCode errorCode;

    public ResponseErrorException(ResponseCode errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    @Override
    public Integer getCode() {
        return errorCode.ordinal();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy