/
exceptions.ex
244 lines (210 loc) · 7.41 KB
/
exceptions.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
defmodule JSON.LD.LoadingDocumentFailedError do
@moduledoc """
The document could not be loaded or parsed as JSON.
"""
defexception code: "loading document failed", message: nil
end
defmodule JSON.LD.ListOfListsError do
@moduledoc """
A list of lists was detected. List of lists are not supported in this version of JSON-LD due to the algorithmic complexity.
"""
defexception code: "list of lists", message: nil
end
defmodule JSON.LD.InvalidIndexValueError do
@moduledoc """
An @index member was encountered whose value was not a string.
"""
defexception code: "invalid @index value", message: nil
end
defmodule JSON.LD.ConflictingIndexesError do
@moduledoc """
Multiple conflicting indexes have been found for the same node.
"""
defexception code: "conflicting indexes", message: nil
end
defmodule JSON.LD.InvalidIdValueError do
@moduledoc """
An @id member was encountered whose value was not a string.
"""
defexception code: "invalid @id value", message: nil
end
defmodule JSON.LD.InvalidLocalContextError do
@moduledoc """
An invalid local context was detected.
"""
defexception code: "invalid local context", message: nil
end
defmodule JSON.LD.MultipleContextLinkHeadersError do
@moduledoc """
Multiple HTTP Link Headers [RFC5988] using the http://www.w3.org/ns/json-ld#context link relation have been detected.
"""
defexception code: "multiple context link headers", message: nil
end
defmodule JSON.LD.LoadingRemoteContextFailedError do
@moduledoc """
There was a problem encountered loading a remote context.
"""
defexception code: "loading remote context failed", message: nil
end
defmodule JSON.LD.InvalidRemoteContextError do
@moduledoc """
No valid context document has been found for a referenced, remote context.
"""
defexception code: "invalid remote context", message: nil
end
defmodule JSON.LD.RecursiveContextInclusionError do
@moduledoc """
A cycle in remote context inclusions has been detected.
"""
defexception code: "recursive context inclusion", message: nil
end
defmodule JSON.LD.InvalidBaseIRIError do
@moduledoc """
An invalid base IRI has been detected, i.e., it is neither an absolute IRI nor null.
"""
defexception code: "invalid base IRI", message: nil
end
defmodule JSON.LD.InvalidVocabMappingError do
@moduledoc """
An invalid vocabulary mapping has been detected, i.e., it is neither an absolute IRI nor null.
"""
defexception code: "invalid vocab mapping", message: nil
end
defmodule JSON.LD.InvalidDefaultLanguageError do
@moduledoc """
The value of the default language is not a string or null and thus invalid.
"""
defexception code: "invalid default language", message: nil
end
defmodule JSON.LD.KeywordRedefinitionError do
@moduledoc """
A keyword redefinition has been detected.
"""
defexception code: "keyword redefinition", message: nil
end
defmodule JSON.LD.InvalidTermDefinitionError do
@moduledoc """
An invalid term definition has been detected.
"""
defexception code: "invalid term definition", message: nil
end
defmodule JSON.LD.InvalidReversePropertyError do
@moduledoc """
An invalid reverse property definition has been detected.
"""
defexception code: "invalid reverse property", message: nil
end
defmodule JSON.LD.InvalidIRIMappingError do
@moduledoc """
A local context contains a term that has an invalid or missing IRI mapping..
"""
defexception code: "invalid IRI mapping", message: nil
end
defmodule JSON.LD.CyclicIRIMappingError do
@moduledoc """
A cycle in IRI mappings has been detected.
"""
defexception code: "cyclic IRI mapping", message: nil
end
defmodule JSON.LD.InvalidKeywordAliasError do
@moduledoc """
An invalid keyword alias definition has been encountered.
"""
defexception code: "invalid keyword alias", message: nil
end
defmodule JSON.LD.InvalidTypeMappingError do
@moduledoc """
An @type member in a term definition was encountered whose value could not be expanded to an absolute IRI.
"""
defexception code: "invalid type mapping", message: nil
end
defmodule JSON.LD.InvalidLanguageMappingError do
@moduledoc """
An @language member in a term definition was encountered whose value was neither a string nor null and thus invalid.
"""
defexception code: "invalid language mapping", message: nil
end
defmodule JSON.LD.CollidingKeywordsError do
@moduledoc """
Two properties which expand to the same keyword have been detected. This might occur if a keyword and an alias thereof are used at the same time.
"""
defexception code: "colliding keywords", message: nil
end
defmodule JSON.LD.InvalidContainerMappingError do
@moduledoc """
An @container member was encountered whose value was not one of the following strings: @list, @set, or @index.
"""
defexception code: "invalid container mapping", message: nil
end
defmodule JSON.LD.InvalidTypeValueError do
@moduledoc """
An invalid value for an @type member has been detected, i.e., the value was neither a string nor an array of strings.
"""
defexception code: "invalid type value", message: nil
end
defmodule JSON.LD.InvalidValueObjectError do
@moduledoc """
A value object with disallowed members has been detected.
"""
defexception code: "invalid value object", message: nil
end
defmodule JSON.LD.InvalidValueObjectValueError do
@moduledoc """
An invalid value for the @value member of a value object has been detected, i.e., it is neither a scalar nor null.
"""
defexception code: "invalid value object value", message: nil
end
defmodule JSON.LD.InvalidLanguageTaggedStringError do
@moduledoc """
A language-tagged string with an invalid language value was detected.
"""
defexception code: "invalid language-tagged string", message: nil
end
defmodule JSON.LD.InvalidLanguageTaggedValueError do
@moduledoc """
A number, true, or false with an associated language tag was detected.
"""
defexception code: "invalid language-tagged value", message: nil
end
defmodule JSON.LD.InvalidTypedValueError do
@moduledoc """
A typed value with an invalid type was detected.
"""
defexception code: "invalid typed value", message: nil
end
defmodule JSON.LD.InvalidSetOrListObjectError do
@moduledoc """
A set object or list object with disallowed members has been detected.
"""
defexception code: "invalid set or list object", message: nil
end
defmodule JSON.LD.InvalidLanguageMapValueError do
@moduledoc """
An invalid value in a language map has been detected. It has to be a string or an array of strings.
"""
defexception code: "invalid language map value", message: nil
end
defmodule JSON.LD.CompactionToListOfListsError do
@moduledoc """
The compacted document contains a list of lists as multiple lists have been compacted to the same term.
"""
defexception code: "compaction to list of lists", message: nil
end
defmodule JSON.LD.InvalidReversePropertyMapError do
@moduledoc """
CollidingKeywordsError
"""
defexception code: "invalid reverse property map", message: nil
end
defmodule JSON.LD.InvalidReverseValueError do
@moduledoc """
An invalid value for an @reverse member has been detected, i.e., the value was not a JSON object.
"""
defexception code: "invalid @reverse value", message: nil
end
defmodule JSON.LD.InvalidReversePropertyValueError do
@moduledoc """
An invalid value for a reverse property has been detected. The value of an inverse property must be a node object.
"""
defexception code: "invalid reverse property value", message: nil
end