Exception: Stix2::Exception::BadType
- Defined in:
- lib/stix2/exception.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ BadType
constructor
A new instance of BadType.
- #message ⇒ Object
Constructor Details
#initialize(type) ⇒ BadType
Returns a new instance of BadType.
27 28 29 |
# File 'lib/stix2/exception.rb', line 27 def initialize(type) @type = type end |
Instance Method Details
#message ⇒ Object
31 32 33 |
# File 'lib/stix2/exception.rb', line 31 def "Property 'type' must be '#{@type}'" end |