Exception: UrlExpander::Error
- Inherits:
-
StandardError
- Object
- StandardError
- UrlExpander::Error
- Defined in:
- lib/url_expander.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
55 56 57 |
# File 'lib/url_expander.rb', line 55 def code @code end |