class Avro::Builder::DefinitionNotFoundError

Public Class Methods

new(name) click to toggle source
Calls superclass method
# File lib/avro/builder/errors.rb, line 32
def initialize(name)
  super("definition not found for '#{name}'.#{suggest_namespace(name)}")
end

Private Instance Methods

suggest_namespace(name) click to toggle source
# File lib/avro/builder/errors.rb, line 38
def suggest_namespace(name)
  ' Try specifying the full namespace.' unless name.to_s.index('.')
end