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:



176
177
178
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 176

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

Instance Method Details

#ec2_error_codeString

Returns:

  • (String)


191
192
193
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 191

def ec2_error_code
  @data[:ec2_error_code]
end

#messageString

Returns:

  • (String)


186
187
188
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 186

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

#typeString

Returns:

  • (String)


181
182
183
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 181

def type
  @data[:type]
end