Class: Aws::MigrationHub::Errors::PolicyErrorException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PolicyErrorException.

Parameters:



127
128
129
# File 'lib/aws-sdk-migrationhub/errors.rb', line 127

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

Instance Method Details

#messageString

Returns:

  • (String)


132
133
134
# File 'lib/aws-sdk-migrationhub/errors.rb', line 132

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