Exception: Stix2::Exception::CustomExtensionFormat

Inherits:
Base
  • Object
show all
Defined in:
lib/stix2/exception.rb

Instance Method Summary collapse

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

#messageObject



69
70
71
# File 'lib/stix2/exception.rb', line 69

def message
  "Custom extension value must be Hash. Got: #{@value}"
end