Sha256: ab083436a5603d2e50320a81a521d69f8d74786c6c9a93bc480996a6b39f158e

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

module Instagram
  # 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
instagram-0.6 lib/instagram/error.rb