Class: Aws::LambdaCore::Errors::ServiceException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ServiceException.

Parameters:



129
130
131
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/errors.rb', line 129

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

Instance Method Details

#message ⇒ String

Returns:

  • (String)


139
140
141
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/errors.rb', line 139

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

#type ⇒ String

Returns:

  • (String)


134
135
136
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/errors.rb', line 134

def type
  @data[:type]
end