Exception: SmartCore::Validator::RuleExecutionContext::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- SmartCore::Validator::RuleExecutionContext::Failure
- Defined in:
- lib/smart_core/validator/rule_execition_context/failure.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Failure
constructor
A new instance of Failure.
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
#code ⇒ Object (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 |