Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed parse errors to raise a StandardError child
- Loading branch information
Showing
6 changed files
with
63 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
|
|||
module Oj | |||
|
|||
class Error < StandardError | |||
end # Error | |||
|
|||
# An Exception that is raised as a result of a parse error while parsing a JSON document. | |||
class ParseError < Error | |||
end # ParseError | |||
|
|||
# An Exception that is raised as a result of a path being too deep. | |||
class DepthError < Error | |||
end # DepthError | |||
|
|||
# An Exception that is raised if a file fails to load. | |||
class LoadError < Error | |||
end # LoadError | |||
|
|||
# An Exception that is raised if there is a conflict with mimicing JSON | |||
class MimicError < Error | |||
end # MimicError | |||
|
|||
end # Oj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,5 @@ | |||
|
|
||
module Oj | module Oj | ||
# Current version of the module. | # Current version of the module. | ||
VERSION = '1.3.7' | VERSION = '1.4.0' | ||
end | end |
:wink2: