Class: GrpcRest::BaseInterceptor
- Inherits:
-
Gruf::Interceptors::ServerInterceptor
- Object
- Gruf::Interceptors::ServerInterceptor
- GrpcRest::BaseInterceptor
- Defined in:
- lib/base_interceptor.rb
Overview
Fixes an issue with the fail! method since the active call is not instantiated yet. Overloads github.com/bigcommerce/gruf/blob/main/lib/gruf/errors/helpers.rb#L34
Instance Method Summary collapse
Instance Method Details
#fail!(error_code, _app_code, message = 'unknown error', metadata = {}) ⇒ Object
9 10 11 |
# File 'lib/base_interceptor.rb', line 9 def fail!(error_code, _app_code, = 'unknown error', = {}) raise grpc_error(error_code, .to_s, ) end |