
org.lognet.springboot.grpc.recovery.GRpcExceptionHandler Maven / Gradle / Ivy
package org.lognet.springboot.grpc.recovery;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks the annotated method eligible for handling the specific exception type. The signature of
* the method HAS to be as follows:
* {@code Status handlerName(Exception type,GRpcExceptionScope scope)}
* , example:
*
*
* {@code public io.grpc.Status handlerName(MyCustomException ex,GRpcExceptionScope scope){
* ...
* }}
*
*
* @see GRpcServiceAdvice
* @see GRpcRuntimeExceptionWrapper
* @see GRpcExceptionScope
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface GRpcExceptionHandler {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy