Class: Aws::Detective::Errors::AccessDeniedException

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

Instance Method Summary collapse

Constructor Details

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



49
50
51
# File 'lib/aws-sdk-detective/errors.rb', line 49

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

Instance Method Details

#error_codeString



59
60
61
# File 'lib/aws-sdk-detective/errors.rb', line 59

def error_code
  @data[:error_code]
end

#error_code_reasonString



64
65
66
# File 'lib/aws-sdk-detective/errors.rb', line 64

def error_code_reason
  @data[:error_code_reason]
end

#messageString



54
55
56
# File 'lib/aws-sdk-detective/errors.rb', line 54

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

#sub_error_codeString



69
70
71
# File 'lib/aws-sdk-detective/errors.rb', line 69

def sub_error_code
  @data[:sub_error_code]
end

#sub_error_code_reasonString



74
75
76
# File 'lib/aws-sdk-detective/errors.rb', line 74

def sub_error_code_reason
  @data[:sub_error_code_reason]
end