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

io.castle.client.model.CastleRuntimeException Maven / Gradle / Ivy

package io.castle.client.model;

import okhttp3.Response;

/**
 * Exception thrown if a review call fails or if the client is configured to use a THROW
 * {@code AuthenticateFailoverStrategy} and if a call to the authenticate endpoint of the Castle API fails.
 */
public class CastleRuntimeException extends RuntimeException {

    public CastleRuntimeException(Throwable throwable) {
        super(throwable);
    }

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

    public CastleRuntimeException(Response response) {
        super(response.toString());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy