Module: StandardCircuit::AdapterErrors::Aws

Defined in:
lib/standard_circuit/adapter_errors/aws.rb

Class Method Summary collapse

Class Method Details

.caller_errorsObject



12
13
14
15
16
17
18
19
# File 'lib/standard_circuit/adapter_errors/aws.rb', line 12

def caller_errors
  return [] unless defined?(::Aws::S3::Errors::NoSuchKey)

  [
    ::Aws::S3::Errors::NoSuchKey,
    ::Aws::S3::Errors::AccessDenied
  ].select { |klass| klass.is_a?(Class) }
end

.server_errorsObject



5
6
7
8
9
10
# File 'lib/standard_circuit/adapter_errors/aws.rb', line 5

def server_errors
  errors = []
  errors << ::Seahorse::Client::NetworkingError if defined?(::Seahorse::Client::NetworkingError)
  errors << ::Aws::Errors::ServiceError if defined?(::Aws::Errors::ServiceError)
  errors
end