gax-ruby icon indicating copy to clipboard operation
gax-ruby copied to clipboard

Remove grpc dependency from api_callable.rb

Open jmuk opened this issue 10 years ago • 2 comments

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

jmuk avatar Jun 22 '16 21:06 jmuk

cc: @tbetbetbe

jmuk avatar Jun 22 '16 21:06 jmuk

@jmuk This toolkit PR and this gax-ruby PR should be able to resolve this issue.

landrito avatar Jun 28 '16 18:06 landrito