# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::AlexaForBusiness # When AlexaForBusiness returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::AlexaForBusiness::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all AlexaForBusiness errors using ServiceError: # # begin # # do stuff # rescue Aws::AlexaForBusiness::Errors::ServiceError # # rescues all AlexaForBusiness API errors # end # # # ## Request Context # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AlreadyExistsException} # * {ConcurrentModificationException} # * {DeviceNotRegisteredException} # * {InvalidCertificateAuthorityException} # * {InvalidDeviceException} # * {InvalidSecretsManagerResourceException} # * {InvalidServiceLinkedRoleStateException} # * {InvalidUserStatusException} # * {LimitExceededException} # * {NameInUseException} # * {NotFoundException} # * {ResourceAssociatedException} # * {ResourceInUseException} # * {SkillNotLinkedException} # * {UnauthorizedException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class AlreadyExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::AlreadyExistsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ConcurrentModificationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::ConcurrentModificationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DeviceNotRegisteredException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::DeviceNotRegisteredException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidCertificateAuthorityException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::InvalidCertificateAuthorityException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidDeviceException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::InvalidDeviceException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidSecretsManagerResourceException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::InvalidSecretsManagerResourceException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidServiceLinkedRoleStateException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::InvalidServiceLinkedRoleStateException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidUserStatusException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::InvalidUserStatusException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::LimitExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NameInUseException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::NameInUseException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::NotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceAssociatedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::ResourceAssociatedException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceInUseException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::ResourceInUseException] 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 client_request_token @data[:client_request_token] end end class SkillNotLinkedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::SkillNotLinkedException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class UnauthorizedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::AlexaForBusiness::Types::UnauthorizedException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end end end