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

org.lognet.springboot.grpc.recovery.GRpcExceptionHandler Maven / Gradle / Ivy

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy