• Modules
    • By category
    • By name
    • Most popular
    • Most downloaded
    • Repository
  • Register
  • Log in
  • Help
    • Start using Ceylon Herd
    • Publish your first module
    • Module publishing guidelines
    • All about Ceylon
    • Keyboard Shortcuts

    • s Focus search module bar
      ? Open this information panel
      j Move selection down
      k Move selection up
      enter Open current selection
Module info
Name
Voitech / herd.validx
Description

Simple validation framework using function references to execute validation process. Executed using validate function which throws a ValidationError or passing with no result. The process executes all validation, even when first fails, allowing to extract all results from provided ValidationError, through ValidationError.errors.

Example:

void someValidation(String param) {
    throw Exception("INVALID ``param``");
}

validate {
    validations = {
        Single(`someValidation`, ["Abc"])
    };
};

[[validate]] has thrown and whenever caught result can be extracted.
Last Published Jul 24, 2019
Stats Downloads (JVM): 225
Downloads (JS): 27
Source downloads: 263
Module links Imported By
Browse
List of published versions
0 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: Unknown (10/0) Published Jul 24, 2019 Browse
View docs
You must be logged in to comment.

Ceylon Herd v1.24 Copyright 2012-2022 Red Hat. About