lib/json-schema/validator.rb in json-schema-1.0.0 vs lib/json-schema/validator.rb in json-schema-1.0.1

- old
+ new

@@ -6,24 +6,24 @@ require 'date' module JSON class Schema - class ValidationError < Exception + class ValidationError < StandardError attr_reader :fragments, :schema def initialize(message, fragments, schema) @fragments = fragments @schema = schema message = "#{message} in schema #{schema.uri}" super(message) end end - class SchemaError < Exception + class SchemaError < StandardError end - class JsonParseError < Exception + class JsonParseError < StandardError end class Attribute def self.validate(current_schema, data, fragments, validator, options = {}) end