File: errors.rb

package info (click to toggle)
ruby-aws-sigv4 1.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 128 kB
  • sloc: ruby: 598; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

module Aws
  module Sigv4
    module Errors

      class MissingCredentialsError < ArgumentError
        def initialize(msg = nil)
          super(msg || <<-MSG.strip)
missing credentials, provide credentials with one of the following options:
  - :access_key_id and :secret_access_key
  - :credentials
  - :credentials_provider
          MSG
        end
      end

      class MissingRegionError < ArgumentError
        def initialize(*args)
          super("missing required option :region")
        end
      end

    end
  end
end