lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.37.0 vs lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.38.0
- old
+ new
@@ -34,10 +34,11 @@
# * {EC2InstanceUnavailableException}
# * {InvalidArgsException}
# * {SerialConsoleAccessDisabledException}
# * {SerialConsoleSessionLimitExceededException}
# * {SerialConsoleSessionUnavailableException}
+ # * {SerialConsoleSessionUnsupportedException}
# * {ServiceException}
# * {ThrottlingException}
#
# Additionally, error classes are dynamically generated for service errors based on the error code
# if they are not defined above.
@@ -168,9 +169,24 @@
class SerialConsoleSessionUnavailableException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionUnavailableException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
+ class SerialConsoleSessionUnsupportedException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionUnsupportedException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]