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

com.uid2.shared.attest.AttestationResponseHandlerException Maven / Gradle / Ivy

package com.uid2.shared.attest;

public class AttestationResponseHandlerException extends Exception {
    private int statusCode = 0;

    public AttestationResponseHandlerException(Throwable t) {
        super(t);
    }

    public AttestationResponseHandlerException(String message) {
        super(message);
    }

    public AttestationResponseHandlerException(int statusCode, String message) {
        super("http status: " + String.valueOf(statusCode) + ", " + message);
        this.statusCode = statusCode;
    }

    public boolean isAttestationFailure() {
        return statusCode == 401;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy