Exception: EtCcdClient::Exceptions::NotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/et_ccd_client/exceptions/not_found.rb

Instance Attribute Summary

Attributes inherited from Base

#original_exception, #request, #url

Instance Method Summary collapse

Methods inherited from Base

exception, #initialize, raise_exception, #response

Constructor Details

This class inherits a constructor from EtCcdClient::Exceptions::Base

Instance Method Details

#to_sObject



4
5
6
7
8
9
# File 'lib/et_ccd_client/exceptions/not_found.rb', line 4

def to_s
  json = JSON.parse(response.body) rescue JSON::JSONError
  return "Not Found" if json.nil?

  super
end