Exception: Stix2::Exception::PropertyInvalidName

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

Instance Method Summary collapse

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

#messageObject



79
80
81
# File 'lib/stix2/exception.rb', line 79

def message
  "Invalid property name: #{@property_name}. Valid chars: a-z, 0-9 and _"
end