code: function getError (type, expected, actual) {
          return {
              attribute: type,
              expected: expected,
              actual: actual,
              message: getMsg(type, expected)
          };
      }
docs: Get an error object
  @param type
  @param expected
  @param actual
  @return {Object}