Sha256: fbf0516e7bdfa5550334dd705d8459c3a6980f947bf12c45480b1f7ba560681f

Contents?: true

Size: 326 Bytes

Versions: 38

Compression:

Stored size: 326 Bytes

Contents

require 'contentful'

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

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

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

p client2.asset 'not found'

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
contentful-2.16.0 examples/raise_errors.rb
contentful-2.15.4 examples/raise_errors.rb
contentful-2.15.3 examples/raise_errors.rb
contentful-2.15.2 examples/raise_errors.rb
contentful-2.15.1 examples/raise_errors.rb
contentful-2.15.0 examples/raise_errors.rb
contentful-2.14.0 examples/raise_errors.rb
contentful-2.13.3 examples/raise_errors.rb
contentful-2.13.2 examples/raise_errors.rb
contentful-2.13.1 examples/raise_errors.rb
contentful-2.13.0 examples/raise_errors.rb
contentful-2.12.0 examples/raise_errors.rb
contentful-2.11.1 examples/raise_errors.rb
contentful-2.11.0 examples/raise_errors.rb
contentful-2.10.1 examples/raise_errors.rb
contentful-2.10.0 examples/raise_errors.rb
contentful-2.9.4 examples/raise_errors.rb
contentful-2.9.3 examples/raise_errors.rb
contentful-2.9.2 examples/raise_errors.rb
contentful-2.9.1 examples/raise_errors.rb