Sha256: 8d559509e9d85f56d980411f971eeee29992b9a4dacca3d8781a891f1081e45d

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

module Khalti
  module Errors
    # Custom error class to handle RuntimeError
    class KhaltiError < RuntimeError; end

    # Custom error class to handle blank variables
    class BlankError < KhaltiError; end

    # Custom error class to handle invalid amount
    class InvalidAmountError < KhaltiError; end

    # Custom error class to handle invalid token
    class InvalidTokenError < KhaltiError; end

    # Custom error class to handle invalid response data
    class InvalidResponseError < KhaltiError; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
khalti-0.2.1 lib/khalti/errors.rb
khalti-0.2.0 lib/khalti/errors.rb