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.
58 59 60 61 |
# File 'lib/url_expander.rb', line 58 def initialize(msg, code) @code = code super("#{msg} - '#{code}'") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
56 57 58 |
# File 'lib/url_expander.rb', line 56 def code @code end |