Exception: Stix2::Exception::MessageUnsupported

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

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ MessageUnsupported

Returns a new instance of MessageUnsupported.



17
18
19
# File 'lib/stix2/exception.rb', line 17

def initialize(type)
  @type = type
end

Instance Method Details

#messageObject



21
22
23
# File 'lib/stix2/exception.rb', line 21

def message
  "Message unsupported: '#{@type}'"
end