Sha256: 446e8349da8198d330f6492d1f66d5459e24108eff3b72af5677334922cd72b9

Contents?: true

Size: 577 Bytes

Versions: 17

Compression:

Stored size: 577 Bytes

Contents

module Pocket
  # Custom error class for rescuing from all Pocket errors
  class Error < StandardError; end

  # Raised when Pocket returns the HTTP status code 400
  class BadRequest < Error; end

  # Raised when Pocket returns the HTTP status code 404
  class NotFound < Error; end

  # Raised when Pocket returns the HTTP status code 500
  class InternalServerError < Error; end

  # Raised when Pocket returns the HTTP status code 503
  class ServiceUnavailable < Error; end

  # Raised when a subscription payload hash is invalid
  class InvalidSignature < Error; end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
pocket-ruby-0.6.0 lib/pocket/error.rb
pocket-ruby-0.5.0 lib/pocket/error.rb
pocket-ruby-0.4.0 lib/pocket/error.rb
pocket-ruby-0.3.0 lib/pocket/error.rb
pocket-ruby-0.2.1 lib/pocket/error.rb
pocket-ruby-0.2.0 lib/pocket/error.rb
pocket-ruby-0.1.0 lib/pocket/error.rb
pocket-ruby-0.0.9 lib/pocket/error.rb
pocket-ruby-0.0.8 lib/pocket/error.rb
pocket-ruby-0.0.7 lib/pocket/error.rb
pocket-ruby-andyw8-0.1.0 lib/pocket/error.rb
pocket-ruby-andyw8-0.0.8 lib/pocket/error.rb
pocket-ruby-andyw8-0.0.7 lib/pocket/error.rb
pocket-ruby-0.0.6 lib/pocket/error.rb
pocket-ruby-0.0.5 lib/pocket/error.rb
pocket-ruby-0.0.4 lib/pocket/error.rb
pocket-ruby-0.0.3 lib/pocket/error.rb