Exception: Utopia::Content::UnbalancedTagError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/utopia/content/transaction.rb

Overview

This error is thrown if a tag doesn’t match up when parsing the

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ UnbalancedTagError

Returns a new instance of UnbalancedTagError.



27
28
29
30
31
# File 'lib/utopia/content/transaction.rb', line 27

def initialize(tag)
	@tag = tag
	
	super("Unbalanced tag #{tag.name}")
end

Instance Attribute Details

#tagObject (readonly)

Returns the value of attribute tag.



33
34
35
# File 'lib/utopia/content/transaction.rb', line 33

def tag
  @tag
end