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:



340
341
342
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 340

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

Instance Method Details

#ec2_error_code ⇒ String

Returns:

  • (String)


355
356
357
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 355

def ec2_error_code
  @data[:ec2_error_code]
end

#message ⇒ String

Returns:

  • (String)


350
351
352
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 350

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

#type ⇒ String

Returns:

  • (String)


345
346
347
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 345

def type
  @data[:type]
end