Annotation Interface GrpcExceptionHandler


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface GrpcExceptionHandler
Marks a method as a gRPC exception handler within a @GrpcAdvice class. The method should return Status, StatusException, or StatusRuntimeException.
Author:
Oleksandr Shevchenko
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Throwable>[]
    Exception types to handle.
  • Element Details

    • value

      Class<? extends Throwable>[] value
      Exception types to handle. If empty, inferred from method parameter types.
      Returns:
      the exception types to handle
      Default:
      {}