- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
def parse_response(object)
return Hashie::Mash.new(JSON.parse(object))
rescue => e
#should handle here different error types/levels or else throw the exceptions to the upper layer (client)
if e.is_a?(JSON::ParserError) && e.message =~ /<html>/
raise "Invalid response from Platform server - #{self.class.parse_json_error(response.body)}"
else
raise e
end
end
guest 10.05.2011 18:00 # 0
guest8 08.04.2019 21:20 # −999
guest8 08.04.2019 22:10 # −999
guest8 09.04.2019 17:53 # −999