lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.24.0 vs lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.25.0
- old
+ new
@@ -29,10 +29,11 @@
# ## Error Classes
# * {AuthException}
# * {EC2InstanceNotFoundException}
# * {EC2InstanceStateInvalidException}
# * {EC2InstanceTypeInvalidException}
+ # * {EC2InstanceUnavailableException}
# * {InvalidArgsException}
# * {SerialConsoleAccessDisabledException}
# * {SerialConsoleSessionLimitExceededException}
# * {SerialConsoleSessionUnavailableException}
# * {ServiceException}
@@ -92,9 +93,24 @@
class EC2InstanceTypeInvalidException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::EC2InstanceConnect::Types::EC2InstanceTypeInvalidException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
+ class EC2InstanceUnavailableException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::EC2InstanceConnect::Types::EC2InstanceUnavailableException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]