Sha256: c22c9c9e0212c9d2123902464e3d2ce7f64860be8418c485bf987d4ae9faaa27

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

module Dirigible
  # Custom error class for rescuing from all known Urban Airship errors
  class Error < StandardError; attr_accessor :error end

  # Raised when Urban Airship returns HTTP status code 400
  class BadRequest < Error; end

  # Raised when Urban Airship returns HTTP status code 401
  class Unauthorized < Error; end

  # Raised when Urban Airship returns HTTP status code 404
  class NotFound < Error; end

  # Raised when Urban Airship returns HTTP status code 405
  class MethodNotAllowed < Error; end

  # Raised when Urban Airship returns HTTP status code 406
  class NotAcceptable < Error; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dirigible-0.0.2 lib/dirigible/error.rb
dirigible-0.0.1 lib/dirigible/error.rb