Exception: Femto::RequestException
- Inherits:
-
Exception
- Object
- Exception
- Femto::RequestException
- Defined in:
- lib/femto.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ RequestException
constructor
A new instance of RequestException.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
135 136 137 |
# File 'lib/femto.rb', line 135 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
136 137 138 |
# File 'lib/femto.rb', line 136 def @message end |