Exception: TypeSwitcherException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/grpc/orin3/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, original_error) ⇒ TypeSwitcherException

Returns a new instance of TypeSwitcherException.



160
161
162
163
164
# File 'lib/grpc/orin3/provider.rb', line 160

def initialize(type, original_error)
  @type = type
  super("Error processing type #{type}: #{original_error.message}")
  set_backtrace(original_error.backtrace)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



158
159
160
# File 'lib/grpc/orin3/provider.rb', line 158

def type
  @type
end