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

Inherits:
ServiceError
  • Object
show all
Defined in:
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:



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

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

Instance Method Details

#ec2_error_codeString

Returns:

  • (String)


195
196
197
# File 'lib/aws-sdk-lambda/errors.rb', line 195

def ec2_error_code
  @data[:ec2_error_code]
end

#messageString

Returns:

  • (String)


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

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

#typeString

Returns:

  • (String)


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

def type
  @data[:type]
end