Exception: RuleBasedValidator::InvalidRulesException
- Inherits:
-
StandardError
- Object
- StandardError
- RuleBasedValidator::InvalidRulesException
- Defined in:
- lib/rule_based_validator/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "No se proporcionaron reglas válidas") ⇒ InvalidRulesException
constructor
A new instance of InvalidRulesException.
Constructor Details
#initialize(message = "No se proporcionaron reglas válidas") ⇒ InvalidRulesException
Returns a new instance of InvalidRulesException.
5 6 7 8 9 |
# File 'lib/rule_based_validator/exceptions.rb', line 5 def initialize( = "No se proporcionaron reglas válidas") super() @code = 17 @status = 400 end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rule_based_validator/exceptions.rb', line 3 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/rule_based_validator/exceptions.rb', line 3 def status @status end |