Module: Dense::DenseError

Defined in:
lib/dense/methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#full_pathObject

Returns the value of attribute full_path.



125
126
127
# File 'lib/dense/methods.rb', line 125

def full_path
  @full_path
end

#missObject

Returns the value of attribute miss.



125
126
127
# File 'lib/dense/methods.rb', line 125

def miss
  @miss
end

Instance Method Details

#relabel(message) ⇒ Object

Used by some “clients” (like flor) to relabel (change the error message) a reraise.



130
131
132
133
134
135
136
137
138
139
# File 'lib/dense/methods.rb', line 130

def relabel(message)

  err = self.class.new(message)
  class << err; include DenseError; end
  err.set_backtrace(self.backtrace)
  err.full_path = self.full_path
  err.miss = self.miss

  err
end