Exception: AxHub::Data::ValidationError
- 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
-
#initialize(message, code = 'validation', status: 0, retryable: false, request_id: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
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(, code = 'validation', status: 0, retryable: false, request_id: nil) super(category: 'validation', code: code, message: , status: status, retryable: retryable, request_id: request_id) end |