Exception: DilisensePepClient::DataProcessingError
- Defined in:
- lib/dilisense_pep_client/errors.rb
Overview
Data processing errors
Instance Attribute Summary collapse
-
#data_type ⇒ Object
readonly
Returns the value of attribute data_type.
-
#processing_stage ⇒ Object
readonly
Returns the value of attribute processing_stage.
Attributes inherited from Error
#context, #error_code, #request_id, #timestamp
Instance Method Summary collapse
-
#initialize(message, data_type: nil, processing_stage: nil, **options) ⇒ DataProcessingError
constructor
A new instance of DataProcessingError.
Methods inherited from Error
#retryable?, #security_event?, #to_h
Constructor Details
#initialize(message, data_type: nil, processing_stage: nil, **options) ⇒ DataProcessingError
Returns a new instance of DataProcessingError.
351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/dilisense_pep_client/errors.rb', line 351 def initialize(, data_type: nil, processing_stage: nil, **) @data_type = data_type @processing_stage = processing_stage context = { data_type: data_type, processing_stage: processing_stage }.merge(.fetch(:context, {})) super(, error_code: "DATA_PROCESSING_ERROR", context: context, **) end |
Instance Attribute Details
#data_type ⇒ Object (readonly)
Returns the value of attribute data_type.
349 350 351 |
# File 'lib/dilisense_pep_client/errors.rb', line 349 def data_type @data_type end |
#processing_stage ⇒ Object (readonly)
Returns the value of attribute processing_stage.
349 350 351 |
# File 'lib/dilisense_pep_client/errors.rb', line 349 def processing_stage @processing_stage end |