Exception: Stix2::Exception::PropertyInvalidSize

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

Instance Method Summary collapse

Constructor Details

#initialize(property_name) ⇒ PropertyInvalidSize

Returns a new instance of PropertyInvalidSize.



85
86
87
# File 'lib/stix2/exception.rb', line 85

def initialize(property_name)
  @property_name = property_name
end

Instance Method Details

#messageObject



89
90
91
# File 'lib/stix2/exception.rb', line 89

def message
  "Invalid property size for #{@property_name}. Size must be > 3 and < 250"
end