2016-11-04 21:13:06 +00:00
|
|
|
defmodule RDF.InvalidURIError do
|
|
|
|
defexception [:message]
|
|
|
|
end
|
|
|
|
|
|
|
|
defmodule RDF.InvalidLiteralError do
|
|
|
|
defexception [:message]
|
|
|
|
end
|
|
|
|
|
|
|
|
defmodule RDF.Triple.InvalidSubjectError do
|
|
|
|
defexception [:subject]
|
|
|
|
|
|
|
|
def message(%{subject: subject}) do
|
|
|
|
"'#{inspect(subject)}' is not a valid subject of a RDF.Triple"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
defmodule RDF.Triple.InvalidPredicateError do
|
|
|
|
defexception [:predicate]
|
|
|
|
|
|
|
|
def message(%{predicate: predicate}) do
|
|
|
|
"'#{inspect(predicate)}' is not a valid predicate of a RDF.Triple"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-18 20:35:27 +00:00
|
|
|
defmodule RDF.Quad.InvalidGraphContextError do
|
|
|
|
defexception [:graph_context]
|
|
|
|
|
|
|
|
def message(%{graph_context: graph_context}) do
|
|
|
|
"'#{inspect(graph_context)}' is not a valid graph context of a RDF.Quad"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-11-04 21:13:06 +00:00
|
|
|
|
2017-03-12 13:27:52 +00:00
|
|
|
defmodule RDF.Namespace.InvalidVocabBaseURIError do
|
2016-11-04 21:13:06 +00:00
|
|
|
defexception [:message]
|
|
|
|
end
|
|
|
|
|
2017-05-26 11:54:04 +00:00
|
|
|
defmodule RDF.Namespace.InvalidTermError do
|
|
|
|
defexception [:message]
|
|
|
|
end
|
|
|
|
|
|
|
|
defmodule RDF.Namespace.InvalidAliasError do
|
|
|
|
defexception [:message]
|
|
|
|
end
|
|
|
|
|
2017-03-12 13:27:52 +00:00
|
|
|
defmodule RDF.Namespace.UndefinedTermError do
|
2016-11-04 21:13:06 +00:00
|
|
|
defexception [:message]
|
|
|
|
end
|