Exception: AxHub::Data::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/axhub_sdk/data/errors.rb

Overview

Typed data-layer errors. These subclass the existing single AxHub::Error so the (category, code) contract that the conformance vectors + error tests match on keeps working, while callers can still rescue the specific failure (mirrors node/python LegacyCursorError / InvalidCursorError / ValidationError / TableNotFoundError / IntrospectFailedError / ScanLimitExceededError).

Instance Attribute Summary

Attributes inherited from Error

#category, #code, #request_id, #retryable, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, code = 'validation', status: 0, retryable: false, request_id: nil) ⇒ ValidationError

Returns a new instance of ValidationError.



11
12
13
# File 'lib/axhub_sdk/data/errors.rb', line 11

def initialize(message, code = 'validation', status: 0, retryable: false, request_id: nil)
  super(category: 'validation', code: code, message: message, status: status, retryable: retryable, request_id: request_id)
end