Exception: YourlsError
- Inherits:
-
StandardError
- Object
- StandardError
- YourlsError
- Defined in:
- lib/yourls/yourls.rb
Instance Attribute Summary (collapse)
-
- (Object) code
readonly
Returns the value of attribute code.
Instance Method Summary (collapse)
-
- (YourlsError) initialize(msg, code)
constructor
A new instance of YourlsError.
Constructor Details
- (YourlsError) initialize(msg, code)
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
- (Object) code (readonly)
Returns the value of attribute code
8 9 10 |
# File 'lib/yourls/yourls.rb', line 8 def code @code end |