lib/aws-sdk-ecs/errors.rb in aws-sdk-ecs-1.39.0 vs lib/aws-sdk-ecs/errors.rb in aws-sdk-ecs-1.40.0
- old
+ new
@@ -8,7 +8,39 @@
module Aws::ECS
module Errors
extend Aws::Errors::DynamicErrors
+ class ClientException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECS::Types::ClientException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ end
+
+ class ServerException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECS::Types::ServerException] 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