Exception: Parse::Agent::PipelineValidator::PipelineSecurityError

Inherits:
SecurityError show all
Defined in:
lib/parse/agent/pipeline_validator.rb

Overview

Security error for blocked or dangerous pipeline operations. Wraps the unified PipelineSecurity::Error for callers that have rescued this class specifically.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, stage: nil, reason: nil, operator: nil) ⇒ PipelineSecurityError

Returns a new instance of PipelineSecurityError.



35
36
37
38
39
40
# File 'lib/parse/agent/pipeline_validator.rb', line 35

def initialize(message, stage: nil, reason: nil, operator: nil)
  @stage = stage
  @reason = reason
  @operator = operator
  super(message)
end

Instance Attribute Details

#operatorObject (readonly)

Returns the value of attribute operator.



33
34
35
# File 'lib/parse/agent/pipeline_validator.rb', line 33

def operator
  @operator
end

#reasonObject (readonly)

Returns the value of attribute reason.



33
34
35
# File 'lib/parse/agent/pipeline_validator.rb', line 33

def reason
  @reason
end

#stageObject (readonly)

Returns the value of attribute stage.



33
34
35
# File 'lib/parse/agent/pipeline_validator.rb', line 33

def stage
  @stage
end