Class: Aws::Organizations::Errors::MasterCannotLeaveOrganizationException

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) ⇒ MasterCannotLeaveOrganizationException

Returns a new instance of MasterCannotLeaveOrganizationException.

Parameters:



529
530
531
# File 'lib/aws-sdk-organizations/errors.rb', line 529

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

Instance Method Details

#messageString

Returns:

  • (String)


534
535
536
# File 'lib/aws-sdk-organizations/errors.rb', line 534

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