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

travel.wink.wise.partner.exceptions.WiseFaultException Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2024 Wink.
 */

package travel.wink.wise.partner.exceptions;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * Created on: 1/18/22.
 *
 * @author Bjorn Harvold Responsibility:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WiseFaultException extends RuntimeException implements Serializable {
    @Serial
    private static final long serialVersionUID = 6054671970459291628L;

    private final String body;
    private final int statusCode;

    /**
     * Instantiates a new Payment fault exception.
     *
     * @param body          the body
     * @param rawStatusCode the raw status code
     */
    public WiseFaultException(String body, int rawStatusCode) {
        this.body = body;
        this.statusCode = rawStatusCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy