Sha256: ebfcc4b972cc11fec7dfc35ef780b9c14023d5cd3c81aae557b8cdc65a555cab

Contents?: true

Size: 228 Bytes

Versions: 5

Compression:

Stored size: 228 Bytes

Contents

module EtCcdClient
  module Exceptions
    class NotFound < Base
      def to_s
        json = JSON.parse(response.body) rescue JSON::JSONError
        return "Not Found" if json.nil?

        super
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
et_ccd_client-0.4.0 lib/et_ccd_client/exceptions/not_found.rb
et_ccd_client-0.3.4 lib/et_ccd_client/exceptions/not_found.rb
et_ccd_client-0.3.3 lib/et_ccd_client/exceptions/not_found.rb
et_ccd_client-0.3.2 lib/et_ccd_client/exceptions/not_found.rb
et_ccd_client-0.3.1 lib/et_ccd_client/exceptions/not_found.rb