Module: Aws::EC2InstanceConnect::Errors

Defined in:


When EC2InstanceConnect returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::EC2InstanceConnect::Errors::ServiceError < Aws::Errors::ServiceError

You can rescue all EC2InstanceConnect errors using ServiceError:

  # do stuff
rescue Aws::EC2InstanceConnect::Errors::ServiceError
  # rescues all EC2InstanceConnect API errors

Request Context

ServiceError objects have a #context method that returns information about the request that generated the error. See Seahorse::Client::RequestContext for more information.

Error Classes

Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above.

Defined Under Namespace

Classes: AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException