# 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::QuickSight # When QuickSight returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::QuickSight::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all QuickSight errors using ServiceError: # # begin # # do stuff # rescue Aws::QuickSight::Errors::ServiceError # # rescues all QuickSight 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 # * {AccessDeniedException} # * {ConcurrentUpdatingException} # * {ConflictException} # * {CustomerManagedKeyUnavailableException} # * {DomainNotWhitelistedException} # * {IdentityTypeNotSupportedException} # * {InternalFailureException} # * {InvalidNextTokenException} # * {InvalidParameterValueException} # * {InvalidRequestException} # * {LimitExceededException} # * {PreconditionNotMetException} # * {QuickSightUserNotFoundException} # * {ResourceExistsException} # * {ResourceNotFoundException} # * {ResourceUnavailableException} # * {SessionLifetimeInMinutesInvalidException} # * {ThrottlingException} # * {UnsupportedPricingPlanException} # * {UnsupportedUserEditionException} # # 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 AccessDeniedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::AccessDeniedException] 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 request_id @data[:request_id] end end class ConcurrentUpdatingException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ConcurrentUpdatingException] 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 request_id @data[:request_id] end end class ConflictException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ConflictException] 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 request_id @data[:request_id] end end class CustomerManagedKeyUnavailableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::CustomerManagedKeyUnavailableException] 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 request_id @data[:request_id] end end class DomainNotWhitelistedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::DomainNotWhitelistedException] 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 request_id @data[:request_id] end end class IdentityTypeNotSupportedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::IdentityTypeNotSupportedException] 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 request_id @data[:request_id] end end class InternalFailureException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::InternalFailureException] 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 request_id @data[:request_id] end end class InvalidNextTokenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::InvalidNextTokenException] 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 request_id @data[:request_id] end end class InvalidParameterValueException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::InvalidParameterValueException] 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 request_id @data[:request_id] end end class InvalidRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::InvalidRequestException] 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 request_id @data[:request_id] end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::LimitExceededException] 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 resource_type @data[:resource_type] end # @return [String] def request_id @data[:request_id] end end class PreconditionNotMetException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::PreconditionNotMetException] 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 request_id @data[:request_id] end end class QuickSightUserNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::QuickSightUserNotFoundException] 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 request_id @data[:request_id] end end class ResourceExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ResourceExistsException] 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 resource_type @data[:resource_type] end # @return [String] def request_id @data[:request_id] end end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ResourceNotFoundException] 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 resource_type @data[:resource_type] end # @return [String] def request_id @data[:request_id] end end class ResourceUnavailableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ResourceUnavailableException] 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 resource_type @data[:resource_type] end # @return [String] def request_id @data[:request_id] end end class SessionLifetimeInMinutesInvalidException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::SessionLifetimeInMinutesInvalidException] 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 request_id @data[:request_id] end end class ThrottlingException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::ThrottlingException] 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 request_id @data[:request_id] end end class UnsupportedPricingPlanException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::UnsupportedPricingPlanException] 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 request_id @data[:request_id] end end class UnsupportedUserEditionException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::QuickSight::Types::UnsupportedUserEditionException] 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 request_id @data[:request_id] end end end end