Exception: Stix2::Exception::InvalidIdentifier

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

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ InvalidIdentifier

Returns a new instance of InvalidIdentifier.



95
96
97
# File 'lib/stix2/exception.rb', line 95

def initialize(value)
  @value = value
end

Instance Method Details

#messageObject



99
100
101
# File 'lib/stix2/exception.rb', line 99

def message
  "Invalid identifier: #{@value}"
end