Exception: Avro::UnknownSchemaError

Inherits:
SchemaParseError show all
Defined in:
lib/avro/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, default_namespace) ⇒ UnknownSchemaError

Returns a new instance of UnknownSchemaError.



626
627
628
629
630
# File 'lib/avro/schema.rb', line 626

def initialize(type, default_namespace)
  @type_name = type
  @default_namespace = default_namespace
  super("#{type.inspect} is not a schema we know about.")
end

Instance Attribute Details

#default_namespaceObject (readonly)

Returns the value of attribute default_namespace.



624
625
626
# File 'lib/avro/schema.rb', line 624

def default_namespace
  @default_namespace
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



623
624
625
# File 'lib/avro/schema.rb', line 623

def type_name
  @type_name
end