Sha256: 6c07a490518359eb3a100abfb34a074b5c00679ea7830cc78f9dbed3a7b0d54a

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

module Jackpot

  Error                   = Class.new(StandardError)

  module Errors
    # Basic Jackpot error class
    # 
    # This error is raised when Jackpot::Payment.initialize_credit_card tries to
    # issue a payment to an invalid card     
    CardIsInvalid           = Class.new(Jackpot::Error)

    # This error indicates the Gateway was not initialized correctly  
    InvalidGateway          = Class.new(Jackpot::Error)
    CustomerHasNoCardSaved  = Class.new(Jackpot::Error)
    UnauthorizedPayment     = Class.new(Jackpot::Error)
  end 
    
end 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jackpot-0.0.3 lib/jackpot/errors.rb