gax-ruby
gax-ruby copied to clipboard
Remove grpc dependency from api_callable.rb
GAX files are usually designed to be orthogonal with underlying APIs, but catch_errors function assumes gRPC errors (and wrap it with GaxError).
This needs to be factored out. It shouldn't depend on grpc.
- list of known errors should be brought to call settings
- construct_settings should accept the list of known errors
- then, googleapis/toolkit should pass the gRPC errors
cc: @tbetbetbe
@jmuk This toolkit PR and this gax-ruby PR should be able to resolve this issue.