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

Class: Aws::Backup::Errors::InvalidRequestException

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

Returns a new instance of InvalidRequestException

Parameters:



121
122
123
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 121

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

Instance Method Details

#codeString

Returns:

  • (String)


126
127
128
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 126

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

#contextString

Returns:

  • (String)


141
142
143
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 141

def context
  @data[:context]
end

#messageString

Returns:

  • (String)


131
132
133
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 131

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

#typeString

Returns:

  • (String)


136
137
138
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/errors.rb', line 136

def type
  @data[:type]
end