ElxValidation.Exception (elx_validation v0.1.0)

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

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 \\ nil)

push error for each rule on value in case user defined as

Link to this function

response(errors, rule_field)

create final error response