Exception: Archsight::ResourceError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/archsight/database.rb

Overview

ResourceError is an error with a path and line no attached

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



29
30
31
# File 'lib/archsight/database.rb', line 29

def message
  @message
end

#refObject (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_sObject



37
38
39
# File 'lib/archsight/database.rb', line 37

def to_s
  "#{ref}: #{super}"
end