Exception: RgGen::Core::RgGenError
- Defined in:
- lib/rggen/core/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#location_info ⇒ Object
readonly
Returns the value of attribute location_info.
-
#verbose_info ⇒ Object
readonly
Returns the value of attribute verbose_info.
Instance Method Summary collapse
-
#initialize(message, location_info = nil, verbose_info = nil) ⇒ RgGenError
constructor
A new instance of RgGenError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, location_info = nil, verbose_info = nil) ⇒ RgGenError
Returns a new instance of RgGenError.
6 7 8 9 10 11 |
# File 'lib/rggen/core/exceptions.rb', line 6 def initialize(, location_info = nil, verbose_info = nil) super() @error_message = @location_info = location_info @verbose_info = verbose_info end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
13 14 15 |
# File 'lib/rggen/core/exceptions.rb', line 13 def @error_message end |
#location_info ⇒ Object (readonly)
Returns the value of attribute location_info.
14 15 16 |
# File 'lib/rggen/core/exceptions.rb', line 14 def location_info @location_info end |
#verbose_info ⇒ Object (readonly)
Returns the value of attribute verbose_info.
15 16 17 |
# File 'lib/rggen/core/exceptions.rb', line 15 def verbose_info @verbose_info end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/rggen/core/exceptions.rb', line 17 def to_s location_info && "#{super} -- #{location_info}" || super end |