# 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::FSx module Errors extend Aws::Errors::DynamicErrors class ActiveDirectoryError < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::ActiveDirectoryError] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def active_directory_id @data[:active_directory_id] end # @return [String] def type @data[:type] end # @return [String] def message @message || @data[:message] end end class BackupInProgress < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::BackupInProgress] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class BackupNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::BackupNotFound] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class BackupRestoring < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::BackupRestoring] 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 file_system_id @data[:file_system_id] end end class BadRequest < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::BadRequest] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DataRepositoryTaskEnded < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::DataRepositoryTaskEnded] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DataRepositoryTaskExecuting < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::DataRepositoryTaskExecuting] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DataRepositoryTaskNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::DataRepositoryTaskNotFound] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FileSystemNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::FileSystemNotFound] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class IncompatibleParameterError < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::IncompatibleParameterError] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def parameter @data[:parameter] end # @return [String] def message @message || @data[:message] end end class InternalServerError < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::InternalServerError] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidExportPath < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::InvalidExportPath] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidImportPath < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::InvalidImportPath] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidNetworkSettings < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::InvalidNetworkSettings] 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 invalid_subnet_id @data[:invalid_subnet_id] end # @return [String] def invalid_security_group_id @data[:invalid_security_group_id] end end class MissingFileSystemConfiguration < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::MissingFileSystemConfiguration] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NotServiceResourceError < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::NotServiceResourceError] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def resource_arn @data[:resource_arn] end # @return [String] def message @message || @data[:message] end end class ResourceDoesNotSupportTagging < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::ResourceDoesNotSupportTagging] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def resource_arn @data[:resource_arn] end # @return [String] def message @message || @data[:message] end end class ResourceNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::ResourceNotFound] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def resource_arn @data[:resource_arn] end # @return [String] def message @message || @data[:message] end end class ServiceLimitExceeded < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::ServiceLimitExceeded] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def limit @data[:limit] end # @return [String] def message @message || @data[:message] end end class UnsupportedOperation < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::FSx::Types::UnsupportedOperation] 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