lib/avro/builder/errors.rb in avro-builder-0.6.0 vs lib/avro/builder/errors.rb in avro-builder-0.7.0
- old
+ new
@@ -36,18 +36,8 @@
def suggest_namespace(name)
' Try specifying the full namespace.' unless name.to_s.index('.')
end
end
- class UnsupportedBlockAttributeError < StandardError
- def initialize(attribute:, type:, field: nil)
- target = if field
- "field '#{field}' of type :#{type}"
- else
- "type :#{type}"
- end
- super("'#{attribute}' must be set directly using an option on #{target}, "\
- 'not via a block')
- end
- end
+ AttributeError = Class.new(StandardError)
end
end