Exception: YourlsError

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (YourlsError) initialize(msg, code)



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