Exception: SmartCore::Validator::RuleExecutionContext::Failure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/smart_core/validator/rule_execition_context/failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ Failure

Returns a new instance of Failure.



6
7
8
9
# File 'lib/smart_core/validator/rule_execition_context/failure.rb', line 6

def initialize(code)
  @code = code
  super(code)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/smart_core/validator/rule_execition_context/failure.rb', line 4

def code
  @code
end