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

Class: Aws::Backup::Errors::ServiceUnavailableException

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

Returns a new instance of ServiceUnavailableException

Parameters:



245
246
247
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 245

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

Instance Method Details

#codeString

Returns:

  • (String)


250
251
252
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 250

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

#contextString

Returns:

  • (String)


265
266
267
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 265

def context
  @data[:context]
end

#messageString

Returns:

  • (String)


255
256
257
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 255

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

#typeString

Returns:

  • (String)


260
261
262
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 260

def type
  @data[:type]
end