Class: Aws::Organizations::Errors::PolicyTypeNotEnabledException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PolicyTypeNotEnabledException.

Parameters:



694
695
696
# File 'lib/aws-sdk-organizations/errors.rb', line 694

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

Instance Method Details

#messageString

Returns:

  • (String)


699
700
701
# File 'lib/aws-sdk-organizations/errors.rb', line 699

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