package de.sebse.fuplanner.tools.network;

/**
 * Created by sebastian on 24.10.17.
 */

public class NetworkError {
    private final int code;
    private final int httpStatus;
    private final String message;

    public NetworkError(int code, int httpStatus, String message) {
        this.code = code;
        this.httpStatus = httpStatus;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public int getHttpStatus() {
        return httpStatus;
    }

    public String getMessage() {
        return message;
    }

    public String toString() {
        return String.valueOf(getCode()) + " - " + getHttpStatus() + " - " + getMessage();
    }
}
