Class: Aws::FSx::Errors::InvalidRequest

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of InvalidRequest.

Parameters:



492
493
494
# File 'gems/aws-sdk-fsx/lib/aws-sdk-fsx/errors.rb', line 492

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

Instance Method Details

#error_codeString

Returns:

  • (String)


497
498
499
# File 'gems/aws-sdk-fsx/lib/aws-sdk-fsx/errors.rb', line 497

def error_code
  @data[:error_code]
end

#messageString

Returns:

  • (String)


502
503
504
# File 'gems/aws-sdk-fsx/lib/aws-sdk-fsx/errors.rb', line 502

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