Package hu.sztaki.ilab.longneck.process

Examples of hu.sztaki.ilab.longneck.process.CheckError


           
            // Increase case counter
            ++lastCase;
           
            if (lastCase >= switchObj.getCases().size()) {
                throw new CheckError(
                        new CheckResult(switchObj, false, null, null, "All cases failed.", errors));
            }
        }
View Full Code Here


            }
           
            // Match against pattern and assign matched parts
            Matcher m = pattern.matcher(value);
            if (! m.find()) {
                throw new CheckError(
                        new CheckResult(this, false, fieldName, value,
                        String.format("Regular expression: '%1$s'", regexp)));
            }
           
            // Populate variable scope with matched parts
View Full Code Here

           
            for (String fieldName : applyTo) {
                BlockUtils.setValue(fieldName, outValue, record, parentScope);
            }
        } catch (IllegalArgumentException ex) {
            throw new CheckError(new CheckResult(this, false, from, dateValue,
                    String.format("Field '%1$s' content '%2$s' does not match date pattern '%3$s'.",
                    from, dateValue, fromPattern)));
        } catch (UnsupportedOperationException ex) {
            log.error("joda-time pattern-based parsing is unsupported.", ex);
        }
View Full Code Here

        } else {
            CheckResult andresult = constraints.check(record, parentScope);
            res = new CheckResult(this, andresult.isPassed(), checkedField, BlockUtils.getValue(checkedField, record, parentScope), summary, andresult.getCauses());
        }
        if (! res.isPassed()) {
            throw new CheckError(res);           
        }
    }
View Full Code Here

TOP

Related Classes of hu.sztaki.ilab.longneck.process.CheckError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.