Exception: Femto::RequestException

Inherits:
Exception
  • Object
show all
Defined in:
lib/femto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ RequestException

Returns a new instance of RequestException.



137
138
139
140
141
# File 'lib/femto.rb', line 137

def initialize(code, msg)
  super "#{code}: #{msg}"
  @code = code
  @message = msg
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



135
136
137
# File 'lib/femto.rb', line 135

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



136
137
138
# File 'lib/femto.rb', line 136

def message
  @message
end