package kz.konturai.parser.exception;

/**
 * Исключение, выбрасываемое когда LinkedIn access token истек
 */
public class LinkedInTokenExpiredException extends RuntimeException {

    private final String errorMessage;
    private final int statusCode;

    public LinkedInTokenExpiredException(String message, String errorMessage, int statusCode) {
        super(message);
        this.errorMessage = errorMessage;
        this.statusCode = statusCode;
    }

    public LinkedInTokenExpiredException(String message, String errorMessage, int statusCode,
            Throwable cause) {
        super(message, cause);
        this.errorMessage = errorMessage;
        this.statusCode = statusCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }
}

