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:



751
752
753
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 751

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

Instance Method Details

#messageString

Returns:

  • (String)


761
762
763
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 761

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

#typeString

Returns:

  • (String)


756
757
758
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 756

def type
  @data[:type]
end