Exception: Ruuuby::DescriptiveStandardError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruuuby/arg_err.rb

Instance Method Summary collapse

Constructor Details

#initialize(the_self, the_error_message) ⇒ DescriptiveStandardError

Returns a new instance of DescriptiveStandardError.

Parameters:

  • the_self (*)
  • the_error_message (String)


10
11
12
# File 'lib/ruuuby/arg_err.rb', line 10

def initialize(the_self, the_error_message)
  super("| c{#{the_self.Ⓣ}}-> m{#{caller_locations(2, 1).first.base_label.to_s}} w/ self{#{the_self.to_s}} #{the_error_message} |")
end