Sha256: 471064711a04304d90d1f401fd3082b249f66f95381ae9a3c59f89dd426a5641
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module BSON # Base exception class for all BSON-related errors. # # @note Many existing exceptions raised by bson-ruby do not derive from # this base class. This will change in the next major version (5.0). class Error < StandardError # Exception raised when Extended JSON parsing fails. class ExtJSONParseError < Error end # Exception raised when decoding BSON and the data contains an # unsupported binary subtype. class UnsupportedBinarySubtype < Error end # Exception raised when BSON decoding fails. class BSONDecodeError < Error end # Exception raised when serializing an Array or Hash to BSON and an # array or hash element is of a class that does not define how to serialize # itself to BSON. class UnserializableClass < Error end # Exception raised when there is an invalid argument passed into the # constructor of regexp object. This includes when the argument contains # a null byte. class InvalidRegexpPattern < Error end end end
Version data entries
8 entries across 8 versions & 1 rubygems