Class: Aws::CloudFront::Errors::NoSuchResource

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

Returns a new instance of NoSuchResource.

Parameters:



1302
1303
1304
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/errors.rb', line 1302

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

Instance Method Details

#messageString

Returns:

  • (String)


1307
1308
1309
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/errors.rb', line 1307

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