Exception: Rex::Parser::GraphML::Error::InvalidAttributeError
- Inherits:
-
ParserError
- Object
- StandardError
- GraphMLError
- ParserError
- Rex::Parser::GraphML::Error::InvalidAttributeError
- Defined in:
- lib/rex/parser/graphml.rb
Overview
An error describing an XML attribute that is invalid either because the value is missing or otherwise invalid.
Instance Method Summary collapse
-
#initialize(element, attribute, details: nil, missing: true) ⇒ InvalidAttributeError
constructor
A new instance of InvalidAttributeError.
Constructor Details
#initialize(element, attribute, details: nil, missing: true) ⇒ InvalidAttributeError
Returns a new instance of InvalidAttributeError.
420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/rex/parser/graphml.rb', line 420 def initialize(element, attribute, details: nil, missing: true) @element = element @attribute = attribute # whether or not the attribute is invalid because it is absent @missing = missing = "Element '#{element}' contains an invalid attribute: '#{attribute}'" << " (#{details})" unless details.nil? super() end |