Exception: Stix2::Exception::PropertyInvalidName
- Defined in:
- lib/stix2/exception.rb
Instance Method Summary collapse
-
#initialize(property_name) ⇒ PropertyInvalidName
constructor
A new instance of PropertyInvalidName.
- #message ⇒ Object
Constructor Details
#initialize(property_name) ⇒ PropertyInvalidName
Returns a new instance of PropertyInvalidName.
75 76 77 |
# File 'lib/stix2/exception.rb', line 75 def initialize(property_name) @property_name = property_name end |
Instance Method Details
#message ⇒ Object
79 80 81 |
# File 'lib/stix2/exception.rb', line 79 def "Invalid property name: #{@property_name}. Valid chars: a-z, 0-9 and _" end |