Exception: Jidoka::ConditionNotMet
- Inherits:
-
StandardError
- Object
- StandardError
- Jidoka::ConditionNotMet
- Defined in:
- lib/jidoka/errors.rb
Overview
Raised when business logic conditions are not met (Validation phase)
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ ConditionNotMet
constructor
A new instance of ConditionNotMet.
Constructor Details
#initialize(code:, message:) ⇒ ConditionNotMet
Returns a new instance of ConditionNotMet.
23 24 25 26 |
# File 'lib/jidoka/errors.rb', line 23 def initialize(code:, message:) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
21 22 23 |
# File 'lib/jidoka/errors.rb', line 21 def code @code end |