Sha256: 19a1f84f507308863a844445f6c4233b3c1481276d86d479ebf5d88dd36897a2

Contents?: true

Size: 142 Bytes

Versions: 14

Compression:

Stored size: 142 Bytes

Contents

module KB
  class ClientError < Error
    def message
      JSON.parse(body)['message']
    rescue StandardError
      body
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
barkibu-kb-0.27.0 lib/kb/errors/client_error.rb
barkibu-kb-0.26.0 lib/kb/errors/client_error.rb
barkibu-kb-0.25.0 lib/kb/errors/client_error.rb
barkibu-kb-0.24.1 lib/kb/errors/client_error.rb
barkibu-kb-0.24.0 lib/kb/errors/client_error.rb
barkibu-kb-0.23.0 lib/kb/errors/client_error.rb
barkibu-kb-0.22.0 lib/kb/errors/client_error.rb
barkibu-kb-0.21.0 lib/kb/errors/client_error.rb
barkibu-kb-0.20.0 lib/kb/errors/client_error.rb
barkibu-kb-0.19.0 lib/kb/errors/client_error.rb
barkibu-kb-0.18.0 lib/kb/errors/client_error.rb
barkibu-kb-0.17.0 lib/kb/errors/client_error.rb
barkibu-kb-0.16.2 lib/kb/errors/client_error.rb
barkibu-kb-0.16.1 lib/kb/errors/client_error.rb