lib/aws-sdk-chatbot/errors.rb in aws-sdk-chatbot-1.9.0 vs lib/aws-sdk-chatbot/errors.rb in aws-sdk-chatbot-1.10.0
- old
+ new
@@ -71,308 +71,463 @@
# @param [String] message
# @param [Aws::Chatbot::Types::ConflictException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class CreateChimeWebhookConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::CreateChimeWebhookConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class CreateSlackChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::CreateSlackChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class CreateTeamsChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::CreateTeamsChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteChimeWebhookConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteChimeWebhookConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteMicrosoftTeamsUserIdentityException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteMicrosoftTeamsUserIdentityException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteSlackChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteSlackChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteSlackUserIdentityException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteSlackUserIdentityException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteSlackWorkspaceAuthorizationFault < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteSlackWorkspaceAuthorizationFault] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteTeamsChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteTeamsChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DeleteTeamsConfiguredTeamException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DeleteTeamsConfiguredTeamException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DescribeChimeWebhookConfigurationsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DescribeChimeWebhookConfigurationsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DescribeSlackChannelConfigurationsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DescribeSlackChannelConfigurationsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DescribeSlackUserIdentitiesException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DescribeSlackUserIdentitiesException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class DescribeSlackWorkspacesException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::DescribeSlackWorkspacesException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class GetAccountPreferencesException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::GetAccountPreferencesException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class GetTeamsChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::GetTeamsChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class InternalServiceError < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::InternalServiceError] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class InvalidParameterException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::InvalidParameterException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class InvalidRequestException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::InvalidRequestException] 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::Chatbot::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 ListMicrosoftTeamsConfiguredTeamsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::ListMicrosoftTeamsConfiguredTeamsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class ListMicrosoftTeamsUserIdentitiesException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::ListMicrosoftTeamsUserIdentitiesException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class ListTeamsChannelConfigurationsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::ListTeamsChannelConfigurationsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class ResourceNotFoundException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::ResourceNotFoundException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class ServiceUnavailableException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::ServiceUnavailableException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class TooManyTagsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::TooManyTagsException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class UpdateAccountPreferencesException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::UpdateAccountPreferencesException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class UpdateChimeWebhookConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::UpdateChimeWebhookConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class UpdateSlackChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::UpdateSlackChannelConfigurationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
end
class UpdateTeamsChannelConfigurationException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::Chatbot::Types::UpdateTeamsChannelConfigurationException] 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