Class: MtGox::Response::RaiseMtGoxError
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- MtGox::Response::RaiseMtGoxError
- Defined in:
- lib/mtgox/response/raise_mtgox_error.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(env) ⇒ Object
6 7 8 9 10 |
# File 'lib/mtgox/response/raise_mtgox_error.rb', line 6 def on_complete(env) if 200 == env[:status] && 'MySQL error, please retry later' == env[:body] raise MtGox::MysqlError, "MySQL error, please retry later" end end |