Class: Aws::Polly::Errors::ResourceNotFoundException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceNotFoundException.

Parameters:



347
348
349
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/errors.rb', line 347

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

Instance Method Details

#message ⇒ String

Returns:

  • (String)


352
353
354
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/errors.rb', line 352

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

#resource_id ⇒ String

Returns:

  • (String)


357
358
359
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/errors.rb', line 357

def resource_id
  @data[:resource_id]
end

#resource_type ⇒ String

Returns:

  • (String)


362
363
364
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/errors.rb', line 362

def resource_type
  @data[:resource_type]
end