exception/CertificateValidationException.java

twilio-java · src/main/java/com/twilio/exception/CertificateValidationException.java · java · MIT
voice, Voice / Speech

Custom exception carrying request and response for certificate validation errors.

// Source: https://github.com/twilio/twilio-java | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
package com.twilio.exception;

import com.twilio.http.Request;
import com.twilio.http.Response;

public class CertificateValidationException extends TwilioException {

    private final Request request;
    private final Response response;

    public CertificateValidationException(final String message, final Request request, final Response response) {
        super(message);

        this.request = request;
        this.response = response;
    }

    public CertificateValidationException(final String message, final Request request) {
        this(message, request, null);
    }

    public Requ

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key