Sha256: 89ea8ccf50b7e8d75c2a95b47d56dd56f32d14d0373946e4a5cef65e4e6a38ee

Contents?: true

Size: 630 Bytes

Versions: 11

Compression:

Stored size: 630 Bytes

Contents

module Oj

  # Inherit Error class from StandardError.
  Error = Class.new(StandardError)

  # Following classes inherit from the Error class.
  # -----------------------------------------------

  # An Exception that is raised as a result of a parse error while parsing a JSON document.
  ParseError = Class.new(Error)

  # An Exception that is raised as a result of a path being too deep.
  DepthError = Class.new(Error)

  # An Exception that is raised if a file fails to load.
  LoadError = Class.new(Error)

  # An Exception that is raised if there is a conflict with mimicking JSON
  MimicError = Class.new(Error)

end # Oj

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
oj-3.16.7 lib/oj/error.rb
oj-3.16.6 lib/oj/error.rb
oj-3.16.5 lib/oj/error.rb
oj-3.16.4 lib/oj/error.rb
oj-3.16.3 lib/oj/error.rb
oj-3.16.2 lib/oj/error.rb
oj-3.16.1 lib/oj/error.rb
oj-3.16.0 lib/oj/error.rb
oj-3.15.1 lib/oj/error.rb
oj-3.15.0 lib/oj/error.rb
oj-3.14.3 lib/oj/error.rb