Class: Aws::CloudFront::Errors::NoSuchCachePolicy

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NoSuchCachePolicy.

Parameters:


883
884
885
# File 'lib/aws-sdk-cloudfront/errors.rb', line 883

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

Instance Method Details

#messageString

Returns:

  • (String)

888
889
890
# File 'lib/aws-sdk-cloudfront/errors.rb', line 888

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