Class: Aws::Lambda::Errors::ServiceException

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) ⇒ ServiceException

Returns a new instance of ServiceException.

Parameters:



705
706
707
# File 'lib/aws-sdk-lambda/errors.rb', line 705

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

Instance Method Details

#messageString

Returns:

  • (String)


715
716
717
# File 'lib/aws-sdk-lambda/errors.rb', line 715

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

#typeString

Returns:

  • (String)


710
711
712
# File 'lib/aws-sdk-lambda/errors.rb', line 710

def type
  @data[:type]
end