Class: Aws::SSM::Errors::ValidationException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ValidationException.

Parameters:



2197
2198
2199
# File 'lib/aws-sdk-ssm/errors.rb', line 2197

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

Instance Method Details

#messageString

Returns:

  • (String)


2202
2203
2204
# File 'lib/aws-sdk-ssm/errors.rb', line 2202

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

#reason_codeString

Returns:

  • (String)


2207
2208
2209
# File 'lib/aws-sdk-ssm/errors.rb', line 2207

def reason_code
  @data[:reason_code]
end