Class: Aws::SecurityHub::Errors::InvalidAccessException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of InvalidAccessException.

Parameters:



89
90
91
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/errors.rb', line 89

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

Instance Method Details

#codeString

Returns:

  • (String)


99
100
101
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/errors.rb', line 99

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

#messageString

Returns:

  • (String)


94
95
96
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/errors.rb', line 94

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