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

Inherits:
ServiceError
  • Object
show all
Defined in:
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:



274
275
276
# File 'lib/aws-sdk-neptunedata/errors.rb', line 274

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

Instance Method Details

#codeString

Returns:

  • (String)


295
296
297
# File 'lib/aws-sdk-neptunedata/errors.rb', line 295

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

#detailed_message(**kwargs) ⇒ String

Note:

This member shadows Exception#detailed_message on Ruby 3.2+. Use ‘error.data.detailed_message` to access the API member directly.

Returns:

  • (String)


281
282
283
284
285
286
287
# File 'lib/aws-sdk-neptunedata/errors.rb', line 281

def detailed_message(**kwargs)
  if kwargs.empty?
    @data[:detailed_message]
  else
    super
  end
end

#request_idString

Returns:

  • (String)


290
291
292
# File 'lib/aws-sdk-neptunedata/errors.rb', line 290

def request_id
  @data[:request_id]
end

#retryable?Boolean

Returns:

  • (Boolean)


299
300
301
# File 'lib/aws-sdk-neptunedata/errors.rb', line 299

def retryable?
  true
end