Sha256: 1b74ebc1f99f439ff118b9fd542d9b7ed19dcc81e76c5d1a597c0e8be136f2b6

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phaxio-2.1.0 lib/phaxio/error.rb
phaxio-2.1.0.pre lib/phaxio/error.rb
phaxio-2.0.1 lib/phaxio/error.rb
phaxio-2.0.0 lib/phaxio/error.rb