Exception: Parse::Agent::ConstraintTranslator::ConstraintSecurityError

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

Overview

Security error for blocked operators that allow code execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, operator: nil, reason: nil) ⇒ ConstraintSecurityError

Returns a new instance of ConstraintSecurityError.



32
33
34
35
36
# File 'lib/parse/agent/constraint_translator.rb', line 32

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

Instance Attribute Details

#operatorObject (readonly)

Returns the value of attribute operator.



30
31
32
# File 'lib/parse/agent/constraint_translator.rb', line 30

def operator
  @operator
end

#reasonObject (readonly)

Returns the value of attribute reason.



30
31
32
# File 'lib/parse/agent/constraint_translator.rb', line 30

def reason
  @reason
end