ElxValidation.Exception (elx_validation v0.1.3)

Control Exceptions and errors

  • not use inside validator
  • called automatically by validator

Link to this section Summary

Functions

create default error schema for each field

set error language

push error for each rule on value in case user defined as null or coustome name

create final error response

Link to this section Functions

Link to this function

build_exception(field)

create default error schema for each field

Link to this function

lang(lang_name)

set error language

Link to this function

push_error?(errors, field, type, value, as)

push error for each rule on value in case user defined as null or coustome name

Link to this function

response(errors, rule_field)

create final error response