Method: GRPC::BadStatus#to_status

Defined in:
src/ruby/lib/grpc/errors.rb

#to_statusStruct::Status

Converts the exception to a Struct::Status for use in the networking wrapper layer.

Returns:

  • (Struct::Status)

    with the same code and details


59
60
61
# File 'src/ruby/lib/grpc/errors.rb', line 59

def to_status
  Struct::Status.new(code, details, , debug_error_string)
end