Class: Aws::SecurityHub::Errors::ResourceInUseException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceInUseException.

Parameters:



257
258
259
# File 'lib/aws-sdk-securityhub/errors.rb', line 257

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

Instance Method Details

#codeString

Returns:

  • (String)


267
268
269
# File 'lib/aws-sdk-securityhub/errors.rb', line 267

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

#messageString

Returns:

  • (String)


262
263
264
# File 'lib/aws-sdk-securityhub/errors.rb', line 262

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