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
|