package com.atlassian.stash.internal.johnson.handler.bean;

import com.atlassian.stash.internal.johnson.handler.EventDetails;
import com.google.common.base.Function;
import org.springframework.beans.factory.BeanCreationException;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * @since 2.8.2
 */
public interface BeanFailureHandler {

    @Nullable
    EventDetails handle(@Nonnull BeanCreationException exception);
}

