Exception: Stix2::Exception::PropertyMissing

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

Instance Method Summary collapse

Constructor Details

#initialize(property_name) ⇒ PropertyMissing

Returns a new instance of PropertyMissing.



7
8
9
# File 'lib/stix2/exception.rb', line 7

def initialize(property_name)
  @property_name = property_name
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/stix2/exception.rb', line 11

def message
  "Property '#{@property_name}' is missing"
end