Exception: Stix2::Exception::PropertyDefinitionSize

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

Instance Method Summary collapse

Constructor Details

#initialize(size) ⇒ PropertyDefinitionSize



105
106
107
# File 'lib/stix2/exception.rb', line 105

def initialize(size)
  @size = size
end

Instance Method Details

#messageObject



109
110
111
# File 'lib/stix2/exception.rb', line 109

def message
  "Property 'definition' must contain a single key. Got #{size} instead"
end