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

Inherits:
ServiceError
  • Object
show all
Defined in:
gems/aws-sdk-cloudfront/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:



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

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

Instance Method Details

#messageString

Returns:

  • (String)


894
895
896
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/errors.rb', line 894

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