Sha256: 1ccf2da1b02d150d14b5ba5559100b6e190146695ef1a44e4694c305f400591d

Contents?: true

Size: 327 Bytes

Versions: 10

Compression:

Stored size: 327 Bytes

Contents

require 'contentful'


client = Contentful::Client.new(
  space: 'cfexampleapi',
  access_token: "b4c0n73n7fu1",
)

begin
  p client.entry 'not found'
rescue => error
  p error
end


client2 = Contentful::Client.new(
  space: 'cfexampleapi',
  access_token: "b4c0n73n7fu1",
  raise_errors: false,
)

p client2.entry 'not found'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
contentful-0.3.4 examples/raise_errors.rb
contentful-0.3.3 examples/raise_errors.rb
contentful-0.3.2 examples/raise_errors.rb
contentful-0.3.1 examples/raise_errors.rb
contentful-0.3.0 examples/raise_errors.rb
contentful-0.2.0 examples/raise_errors.rb
contentful-0.1.3 examples/raise_errors.rb
contentful-0.1.2 examples/raise_errors.rb
contentful-0.1.1 examples/raise_errors.rb
contentful-0.1.0 examples/raise_errors.rb