• 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 / 0
Backends JVM JavaScript
Maven coordinates
Compatible Ceylon release JVM: 1.2.x, 1.3.x (latest)
JavaScript: Unknown (10/0)
Published Jul 24, 2019
Stats Downloads (JVM): 138
Downloads (JS): 19
Source downloads: 174
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.
Dependencies
ceylon.language/1.3.3
Usage
  • Import
 import herd.validx "0";
Module links Members
Imported By
Browse
Download .car
Download .js
Download source archive
Download module documentation
View API documentation

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