Exception: YourlsError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/yourls/yourls.rb', line 8

def code
  @code
end