Class: Aws::Translate::Errors::UnsupportedLanguagePairException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UnsupportedLanguagePairException.

Parameters:



282
283
284
# File 'lib/aws-sdk-translate/errors.rb', line 282

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

Instance Method Details

#messageString

Returns:

  • (String)


287
288
289
# File 'lib/aws-sdk-translate/errors.rb', line 287

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

#source_language_codeString

Returns:

  • (String)


292
293
294
# File 'lib/aws-sdk-translate/errors.rb', line 292

def source_language_code
  @data[:source_language_code]
end

#target_language_codeString

Returns:

  • (String)


297
298
299
# File 'lib/aws-sdk-translate/errors.rb', line 297

def target_language_code
  @data[:target_language_code]
end