Exception: SchemaRegistry::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/schema_registry/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ ResponseError

Returns a new instance of ResponseError.



8
9
10
11
# File 'lib/schema_registry/client.rb', line 8

def initialize(code, message)
  @code = code
  super("#{message} (error code #{code})")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/schema_registry/client.rb', line 6

def code
  @code
end