Exception: DIY::UserError

Inherits:
Error
  • Object
show all
Defined in:
lib/diy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(real_exception) ⇒ UserError

Returns a new instance of UserError.



17
18
19
20
21
22
# File 'lib/diy/exceptions.rb', line 17

def initialize(real_exception)
  @real_exception = real_exception
  @name = real_exception.class
  @message = real_exception.message
  set_backtrace( Utils.filter_backtrace(real_exception) )
end

Instance Method Details

#inspectObject



24
25
26
# File 'lib/diy/exceptions.rb', line 24

def inspect
  "#<#{self.class.name}: @real_exception=#{@name}, @real_msg=#{@message}>"
end