Class: Aws::Lambda::Errors::EC2UnexpectedException

Inherits:
ServiceError
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ EC2UnexpectedException

Returns a new instance of EC2UnexpectedException.

Parameters:



249
250
251
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 249

def initialize(context, message, data = Aws::EmptyStructure.new)
  super(context, message, data)
end

Instance Method Details

#ec2_error_codeString

Returns:

  • (String)


264
265
266
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 264

def ec2_error_code
  @data[:ec2_error_code]
end

#messageString

Returns:

  • (String)


259
260
261
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 259

def message
  @message || @data[:message]
end

#typeString

Returns:

  • (String)


254
255
256
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 254

def type
  @data[:type]
end