Exception: RuleBasedValidator::InvalidRulesException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rule_based_validator/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = "No se proporcionaron reglas válidas")
  super(message)
  @code = 17
  @status = 400
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/rule_based_validator/exceptions.rb', line 3

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/rule_based_validator/exceptions.rb', line 3

def status
  @status
end