lx-valid.js
function getError (type, expected, actual) {
        return {
            attribute: type,
            expected: expected,
            actual: actual,
            message: getMsg(type, expected)
        };
    }
function getError (type, expected, actual) {
        return {
            attribute: type,
            expected: expected,
            actual: actual,
            message: getMsg(type, expected)
        };
    }
function getError ( type , expected , actual ) { return { attribute : type , expected : expected , actual : actual , message : getMsg ( type , expected ) } ; }
Get an error object
@param type
@param expected
@param actual
@return {Object}
Get an error object