AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::Mgn::Errors::ValidationException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ValidationException.

Parameters:



199
200
201
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/errors.rb', line 199

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

Instance Method Details

#codeString

Returns:

  • (String)


204
205
206
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/errors.rb', line 204

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

#field_listString

Returns:

  • (String)


209
210
211
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/errors.rb', line 209

def field_list
  @data[:field_list]
end

#messageString

Returns:

  • (String)


214
215
216
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/errors.rb', line 214

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

#reasonString

Returns:

  • (String)


219
220
221
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/errors.rb', line 219

def reason
  @data[:reason]
end