You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Kafka::Errors::BadRequestException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BadRequestException

Parameters:



18
19
20
# File 'gems/aws-sdk-kafka/lib/aws-sdk-kafka/errors.rb', line 18

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

Instance Method Details

#invalid_parameterString

Returns:

  • (String)


23
24
25
# File 'gems/aws-sdk-kafka/lib/aws-sdk-kafka/errors.rb', line 23

def invalid_parameter
  @data[:invalid_parameter]
end

#messageString

Returns:

  • (String)


28
29
30
# File 'gems/aws-sdk-kafka/lib/aws-sdk-kafka/errors.rb', line 28

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