Sha256: ab4c784452ec30427fcb89ee03470b3a9d1cb2fd0c79fc63579dc5032267b819

Contents?: true

Size: 218 Bytes

Versions: 10

Compression:

Stored size: 218 Bytes

Contents

module Razorpay
  # Default Error class for any unknown errors
  class Error < StandardError
    attr_reader :code, :status

    def initialize(code, status)
      @code = code
      @status = status
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
razorpay-2.1.0.pre lib/razorpay/errors/razorpay_error.rb
razorpay-2.0.1 lib/razorpay/errors/razorpay_error.rb
razorpay-2.0.0 lib/razorpay/errors/razorpay_error.rb
razorpay-1.2.1 lib/razorpay/errors/razorpay_error.rb
razorpay-1.2.0 lib/razorpay/errors/razorpay_error.rb
razorpay-1.1.0 lib/razorpay/errors/razorpay_error.rb
razorpay-1.0.3 lib/razorpay/errors/razorpay_error.rb
razorpay-1.0.2 lib/razorpay/errors/razorpay_error.rb
razorpay-1.0.1 lib/razorpay/errors/razorpay_error.rb
razorpay-1.0.0 lib/razorpay/errors/razorpay_error.rb