mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.7.3.1
This commit is contained in:
@@ -35,8 +35,8 @@ class GfmlUsrMsgs {
|
||||
um.Add("errorPos", bldr.StreamPos());
|
||||
um.Add("errorHighlight", String_.CrLf + String_.Concat_lines_crlf(sh.Gen()));
|
||||
}
|
||||
public static Exc gfmlParseError(GfmlBldr bldr) {
|
||||
Exc rv = Exc_.new_("gfml parse error");
|
||||
public static Err gfmlParseError(GfmlBldr bldr) {
|
||||
Err rv = Err_.new_wo_type("gfml parse error");
|
||||
for (int i = 0; i < bldr.Doc().UsrMsgs().Count(); i++) {
|
||||
UsrMsg um = (UsrMsg)bldr.Doc().UsrMsgs().Get_at(i);
|
||||
rv.Args_add("err" + Int_.Xto_str(i), um.XtoStr());
|
||||
|
||||
@@ -27,7 +27,7 @@ public class GfmlItmKeys {
|
||||
}
|
||||
public String FetchDataOrNull(String key) {return FetchDataOr(key, null);}
|
||||
public String FetchDataOrFail(String key) {
|
||||
GfmlAtr atr = FetchAtr(key); if (atr == null) throw Exc_.new_missing_key(key);
|
||||
GfmlAtr atr = FetchAtr(key); if (atr == null) throw Err_.new_missing_key(key);
|
||||
return atr.DatTkn().Val();
|
||||
}
|
||||
public GfmlTkn FetchDataTknOrNull(String key) {
|
||||
|
||||
Reference in New Issue
Block a user