You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Backup::Errors::ResourceNotFoundException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceNotFoundException

Parameters:



214
215
216
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 214

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

Instance Method Details

#codeString

Returns:

  • (String)


219
220
221
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 219

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

#contextString

Returns:

  • (String)


234
235
236
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 234

def context
  @data[:context]
end

#messageString

Returns:

  • (String)


224
225
226
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 224

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

#typeString

Returns:

  • (String)


229
230
231
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 229

def type
  @data[:type]
end