Merge: doc: fixed some typos and other misc. corrections
[nit.git] / lib / json / error.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # This file is free software, which comes along with NIT. This software is
4 # distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
5 # without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
6 # PARTICULAR PURPOSE. You can modify it is you want, provided this header
7 # is kept unaltered, and a notification of the changes is added.
8 # You are allowed to redistribute it and sell it, alone or is a part of
9 # another product.
10
11 # Intro `JsonParseError` which is exposed by all JSON reading APIs
12 module error
13
14 import parser_base
15
16 # JSON format error at parsing
17 class JsonParseError
18 super Error
19 serialize
20
21 # Location of the error in source
22 var location: nullable Location = null
23 end