Exception: Stix2::Exception::PropertyInvalidSize
- Defined in:
- lib/stix2/exception.rb
Instance Method Summary collapse
-
#initialize(property_name) ⇒ PropertyInvalidSize
constructor
A new instance of PropertyInvalidSize.
- #message ⇒ Object
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
#message ⇒ Object
89 90 91 |
# File 'lib/stix2/exception.rb', line 89 def "Invalid property size for #{@property_name}. Size must be > 3 and < 250" end |