Exception: BSON::Error::InvalidBinaryType
- Inherits:
-
BSON::Error
- Object
- StandardError
- BSON::Error
- BSON::Error::InvalidBinaryType
- Defined in:
- lib/bson/error/invalid_binary_type.rb
Overview
Raised when providing an invalid type to the Binary.
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
The invalid type.
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidBinaryType
constructor
private
Instantiate the new error.
-
#message ⇒ String
Get the custom error message for the exception.
Constructor Details
#initialize(type) ⇒ InvalidBinaryType
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the new error.
21 22 23 |
# File 'lib/bson/error/invalid_binary_type.rb', line 21 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns The invalid type.
11 12 13 |
# File 'lib/bson/error/invalid_binary_type.rb', line 11 def type @type end |