Class: Aws::KMS::Errors::IncorrectKeyException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IncorrectKeyException.

Parameters:


271
272
273
# File 'lib/aws-sdk-kms/errors.rb', line 271

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

Instance Method Details

#messageString

Returns:

  • (String)

276
277
278
# File 'lib/aws-sdk-kms/errors.rb', line 276

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