Exception: BSON::Binary::InvalidType
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BSON::Binary::InvalidType
- Defined in:
- lib/bson/binary.rb
Overview
Raised when providing an invalid type to the Binary.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidType
constructor
Instantiate the new error.
-
#message ⇒ String
Get the custom error message for the exception.
Constructor Details
#initialize(type) ⇒ InvalidType
Instantiate the new error.
152 153 154 |
# File 'lib/bson/binary.rb', line 152 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object
142 143 144 |
# File 'lib/bson/binary.rb', line 142 def type @type end |