package io.synor.privacy;

/**
 * Exception thrown by the Privacy SDK.
 */
public class PrivacyException extends RuntimeException {
    private final Integer statusCode;
    private final String errorCode;

    public PrivacyException(String message) {
        super(message);
        this.statusCode = null;
        this.errorCode = null;
    }

    public PrivacyException(String message, Throwable cause) {
        super(message, cause);
        this.statusCode = null;
        this.errorCode = null;
    }

    public PrivacyException(String message, int statusCode, String errorCode) {
        super(message);
        this.statusCode = statusCode;
        this.errorCode = errorCode;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
