Exception: Libvirt::Exception::UnparseableSpec

Inherits:
StandardError
  • Object
show all
Defined in:
lib/libvirt/exception.rb

Overview

Represents an exception in parsing an XML spec into a Ruby Spec object.

Instance Method Summary collapse

Constructor Details

#initialize(tags) ⇒ UnparseableSpec

Returns a new instance of UnparseableSpec.



22
23
24
25
# File 'lib/libvirt/exception.rb', line 22

def initialize(tags)
  tags = tags.map { |tag| tag.name }
  super("Unsupported tags found. This is either a bug or the XML string given is invalid. Tags: #{tags}")
end