Class: Aws::Lambda::Errors::UnsupportedMediaTypeException

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

Returns a new instance of UnsupportedMediaTypeException.

Parameters:



688
689
690
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 688

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

Instance Method Details

#messageString

Returns:

  • (String)


698
699
700
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 698

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

#typeString

Returns:

  • (String)


693
694
695
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 693

def type
  @data[:type]
end