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

Inherits:
ServiceError
  • Object
show all
Defined in:
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:



182
183
184
# File 'lib/aws-sdk-backup/errors.rb', line 182

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

Instance Method Details

#codeString

Returns:

  • (String)


187
188
189
# File 'lib/aws-sdk-backup/errors.rb', line 187

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

#contextString

Returns:

  • (String)


202
203
204
# File 'lib/aws-sdk-backup/errors.rb', line 202

def context
  @data[:context]
end

#messageString

Returns:

  • (String)


192
193
194
# File 'lib/aws-sdk-backup/errors.rb', line 192

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

#typeString

Returns:

  • (String)


197
198
199
# File 'lib/aws-sdk-backup/errors.rb', line 197

def type
  @data[:type]
end