Sha256: d8ec069a8cf4eb5544a4ac427f4317a1180d0bc088851f374d7eafa882c64fa6
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
module Grpc module Client module ORiN3 class MessageClientError < StandardError attr_reader :result_code, :detail, :original_exception def initialize(arg1, arg2 = nil) if arg2.nil? && arg1.is_a?(StandardError) @result_code = :UNKNOWN @detail = arg1.message @original_exception = arg1 super("Code: #{@result_code}, Detail: #{@detail}") set_backtrace(arg1.backtrace) else @result_code = arg1 @detail = arg2 super("Code: #{@result_code}, Detail: #{@detail}") end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grpc-orin3-provider-1.0.0 | lib/grpc/client/orin3/message_client_error.rb |