Sha256: e3ed46e283e697f13cf84410c296799c6f408058cba6f9596371d361ebbfeef6

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

module Phaxio
  module Error
    PhaxioError = Class.new StandardError
    %w[
      AuthenticationError
      NotFoundError
      InvalidRequestError
      RateLimitExceededError
      ServiceUnavailableError
      GeneralError
      ApiConnectionError
    ].each { |error_klass_name| const_set error_klass_name, Class.new(PhaxioError) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phaxio-2.1.2 lib/phaxio/error.rb
phaxio-2.1.1 lib/phaxio/error.rb