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

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AccessDeniedException.

Parameters:



49
50
51
# File 'gems/aws-sdk-detective/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

Returns:

  • (String)


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

def error_code
  @data[:error_code]
end

#error_code_reasonString

Returns:

  • (String)


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

def error_code_reason
  @data[:error_code_reason]
end

#messageString

Returns:

  • (String)


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

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

#sub_error_codeString

Returns:

  • (String)


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

def sub_error_code
  @data[:sub_error_code]
end

#sub_error_code_reasonString

Returns:

  • (String)


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

def sub_error_code_reason
  @data[:sub_error_code_reason]
end