Exception: Stix2::Exception::CustomExtensionFormat
- Defined in:
- lib/stix2/exception.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ CustomExtensionFormat
constructor
A new instance of CustomExtensionFormat.
- #message ⇒ Object
Constructor Details
#initialize(value) ⇒ CustomExtensionFormat
Returns a new instance of CustomExtensionFormat.
65 66 67 |
# File 'lib/stix2/exception.rb', line 65 def initialize(value) @value = value end |
Instance Method Details
#message ⇒ Object
69 70 71 |
# File 'lib/stix2/exception.rb', line 69 def "Custom extension value must be Hash. Got: #{@value}" end |