Class: Aws::Neptunedata::Errors::ConstraintViolationException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ConstraintViolationException.

Parameters:



238
239
240
# File 'gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/errors.rb', line 238

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

Instance Method Details

#codeString

Returns:

  • (String)


253
254
255
# File 'gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/errors.rb', line 253

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

#detailed_messageString

Returns:

  • (String)


243
244
245
# File 'gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/errors.rb', line 243

def detailed_message
  @data[:detailed_message]
end

#request_idString

Returns:

  • (String)


248
249
250
# File 'gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/errors.rb', line 248

def request_id
  @data[:request_id]
end

#retryable?Boolean

Returns:

  • (Boolean)


257
258
259
# File 'gems/aws-sdk-neptunedata/lib/aws-sdk-neptunedata/errors.rb', line 257

def retryable?
  true
end