lib/yaml_ld.rb in yaml-ld-0.0.2 vs lib/yaml_ld.rb in yaml-ld-0.0.3

- old
+ new

@@ -33,6 +33,13 @@ autoload :Writer, 'yaml_ld/writer' # YAML-LD profiles YAML_LD_NS = "http://www.w3.org/ns/yaml-ld#" PROFILES = %w(extended).map {|p| YAML_LD_NS + p}.freeze + + class Error < JSON::LD::JsonLdError + class InvalidEncoding < YAML_LD::Error; @code = "invalid encoding"; end + class MappingKeyError < YAML_LD::Error; @code = "mapping-key-error"; end + class ProfileError < YAML_LD::Error; @code = "profile-error"; end + end + end