Exception: RStyx::TagInUseException

Inherits:
StyxException show all
Defined in:
lib/rstyx/errors.rb

Overview

Tag in use exception, raised when a tag already in use is reallocated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ TagInUseException

Returns a new instance of TagInUseException.



58
59
60
# File 'lib/rstyx/errors.rb', line 58

def initialize(tag)
  @tag = tag
end

Instance Attribute Details

#tagObject

Returns the value of attribute tag.



56
57
58
# File 'lib/rstyx/errors.rb', line 56

def tag
  @tag
end

Instance Method Details

#messageObject



62
63
64
# File 'lib/rstyx/errors.rb', line 62

def message
  return("Tag #{@tag} is already in use.")
end