Exception: YourlsError
- Inherits:
-
StandardError
- Object
- StandardError
- YourlsError
- Defined in:
- lib/yourls/yourls.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ YourlsError
constructor
A new instance of YourlsError.
Constructor Details
#initialize(msg, code) ⇒ YourlsError
Returns a new instance of YourlsError.
10 11 12 13 |
# File 'lib/yourls/yourls.rb', line 10 def initialize(msg, code) @code = code super("#{msg} - '#{code}'") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/yourls/yourls.rb', line 8 def code @code end |