Sha256: c53434331e381627a75671ac6853dc84383fbe0e6a365df238d8936faddb1641

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

module Plaid
  class PlaidError < StandardError
    attr_reader :code
    attr_reader :resolve
    
    def initialize(code, message, resolve)
      super(message)
      @code = code
      @resolve = resolve
    end
  end

  class BadRequest < PlaidError
  end

  class Unauthorized < PlaidError
  end

  class RequestFailed < PlaidError
  end

  class NotFound < PlaidError
  end

  class ServerError < PlaidError
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
plaid-1.7.1 lib/plaid/errors.rb
plaid-1.7.0 lib/plaid/errors.rb
plaid-1.6.2 lib/plaid/errors.rb
plaid-1.6.1 lib/plaid/errors.rb
plaid-1.6.0 lib/plaid/errors.rb
plaid-1.5.3 lib/plaid/errors.rb