Exception: UrlExpander::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ Error

Returns a new instance of Error.



57
58
59
60
# File 'lib/url_expander.rb', line 57

def initialize(msg, code)
  @code = code
  super("#{msg} - '#{code}'")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



55
56
57
# File 'lib/url_expander.rb', line 55

def code
  @code
end