Class: Aws::Organizations::Errors::ServiceException

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

Returns a new instance of ServiceException.

Parameters:



739
740
741
# File 'lib/aws-sdk-organizations/errors.rb', line 739

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

Instance Method Details

#messageString

Returns:

  • (String)


744
745
746
# File 'lib/aws-sdk-organizations/errors.rb', line 744

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