Class: Aws::PcaConnectorAd::Errors::ValidationException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ValidationException.

Parameters:



201
202
203
# File 'lib/aws-sdk-pcaconnectorad/errors.rb', line 201

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

Instance Method Details

#messageString

Returns:

  • (String)


206
207
208
# File 'lib/aws-sdk-pcaconnectorad/errors.rb', line 206

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

#reasonString

Returns:

  • (String)


211
212
213
# File 'lib/aws-sdk-pcaconnectorad/errors.rb', line 211

def reason
  @data[:reason]
end