Exception: Archsight::ResourceError
- Inherits:
-
StandardError
- Object
- StandardError
- Archsight::ResourceError
- Defined in:
- lib/archsight/database.rb
Overview
ResourceError is an error with a path and line no attached
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
-
#initialize(msg, ref) ⇒ ResourceError
constructor
A new instance of ResourceError.
- #to_s ⇒ Object
Constructor Details
#initialize(msg, ref) ⇒ ResourceError
Returns a new instance of ResourceError.
31 32 33 34 35 |
# File 'lib/archsight/database.rb', line 31 def initialize(msg, ref) super(msg) @message = msg @ref = ref end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
29 30 31 |
# File 'lib/archsight/database.rb', line 29 def @message end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
29 30 31 |
# File 'lib/archsight/database.rb', line 29 def ref @ref end |
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/archsight/database.rb', line 37 def to_s "#{ref}: #{super}" end |