Sha256: 2599f788de3cc41482825546c91bd9f831db3f3fd806622c0822a27cd4697537

Contents?: true

Size: 1.79 KB

Versions: 11

Compression:

Stored size: 1.79 KB

Contents

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

module Aws::StorageGateway
  module Errors

    extend Aws::Errors::DynamicErrors

    class InternalServerError < ServiceError

      # @param [Seahorse::Client::RequestContext] context
      # @param [String] message
      # @param [Aws::StorageGateway::Types::InternalServerError] data
      def initialize(context, message, data = Aws::EmptyStructure.new)
        super(context, message, data)
      end

      # @return [String]
      def message
        @message || @data[:message]
      end

      # @return [String]
      def error
        @data[:error]
      end

    end

    class InvalidGatewayRequestException < ServiceError

      # @param [Seahorse::Client::RequestContext] context
      # @param [String] message
      # @param [Aws::StorageGateway::Types::InvalidGatewayRequestException] data
      def initialize(context, message, data = Aws::EmptyStructure.new)
        super(context, message, data)
      end

      # @return [String]
      def message
        @message || @data[:message]
      end

      # @return [String]
      def error
        @data[:error]
      end

    end

    class ServiceUnavailableError < ServiceError

      # @param [Seahorse::Client::RequestContext] context
      # @param [String] message
      # @param [Aws::StorageGateway::Types::ServiceUnavailableError] data
      def initialize(context, message, data = Aws::EmptyStructure.new)
        super(context, message, data)
      end

      # @return [String]
      def message
        @message || @data[:message]
      end

      # @return [String]
      def error
        @data[:error]
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-sdk-storagegateway-1.35.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.34.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.33.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.32.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.31.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.30.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.29.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.28.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.27.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.26.0 lib/aws-sdk-storagegateway/errors.rb
aws-sdk-storagegateway-1.25.0 lib/aws-sdk-storagegateway/errors.rb