lib/avro/builder/errors.rb in avro-builder-0.7.0 vs lib/avro/builder/errors.rb in avro-builder-0.8.0

- old
+ new

@@ -36,8 +36,14 @@ def suggest_namespace(name) ' Try specifying the full namespace.' unless name.to_s.index('.') end end + class SchemaError < StandardError + def initialize(actual, expected) + super("expected schema '#{actual}' to define type '#{expected}'") + end + end + AttributeError = Class.new(StandardError) end end