|
@@ -169,10 +169,12 @@ public class ZillaRuntime { |
|
|
throw e; |
|
|
throw e; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String shortErrorString(Exception e) { return e.getClass().getName()+": "+e.getMessage(); } |
|
|
|
|
|
|
|
|
public static String errorString(Exception e) { return errorString(e, 1000); } |
|
|
public static String errorString(Exception e) { return errorString(e, 1000); } |
|
|
|
|
|
|
|
|
public static String errorString(Exception e, int maxlen) { |
|
|
public static String errorString(Exception e, int maxlen) { |
|
|
return truncate(e.getClass().getName()+": "+e.getMessage()+"\n"+ getStackTrace(e), maxlen); |
|
|
|
|
|
|
|
|
return truncate(shortErrorString(e)+"\n"+ getStackTrace(e), maxlen); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static boolean empty(String s) { return s == null || s.length() == 0; } |
|
|
public static boolean empty(String s) { return s == null || s.length() == 0; } |
|
|