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

io.sentry.connection.EventSendCallback Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.4
Show newest version
package io.sentry.connection;

import io.sentry.event.Event;

/**
 * Callback that is called upon success or failure while attempting to
 * send events to the Sentry server.
 */
public interface EventSendCallback {

    /**
     * Called when an exception occurs while attempting to
     * send events to the Sentry server.
     *
     * @param event Event that couldn't be sent
     * @param exception Exception that occurred while attempting to send the Event
     */
    void onFailure(Event event, Exception exception);

    /**
     * Called when an event is successfully sent to the Sentry server.
     *
     * @param event Event that was sent
     */
    void onSuccess(Event event);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy