package ru.yandex.qe.bus.exception;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.function.Function;

import javax.ws.rs.WebApplicationException;

/**
 * @author rurikk
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ExceptionTranslator {
    Class<? extends Function<Throwable, WebApplicationException>> value();
}
