Sha256: fb88c81e0acb777472ddad4570f29a658926bc7df41d4beb17d67a94aefc0f2c

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

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

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

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

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

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

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

  # Raised when the configuration is invalid
  class InvalidConfiguration < Error; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jibeset-0.2 lib/jibeset/error.rb