renamed a method

This commit is contained in:
hneemann 2017-06-17 18:44:12 +02:00
parent 04d6748e0d
commit 3d48efedb9
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class ExceptionWithOrigin extends Exception {
* @param e the exception * @param e the exception
* @return the origin or null; * @return the origin or null;
*/ */
public static String getOrigin(Throwable e) { public static String getOriginOf(Throwable e) {
while (e != null) { while (e != null) {
if (e instanceof ExceptionWithOrigin) { if (e instanceof ExceptionWithOrigin) {
String orig = ((ExceptionWithOrigin) e).getOriginStr(); String orig = ((ExceptionWithOrigin) e).getOriginStr();

View File

@ -46,7 +46,7 @@ public class ErrorMessage implements Runnable {
message.append('\n'); message.append('\n');
addExceptionMessage(e); addExceptionMessage(e);
String orig = ExceptionWithOrigin.getOrigin(e); String orig = ExceptionWithOrigin.getOriginOf(e);
if (orig != null) { if (orig != null) {
if (message.length() > 0) message.append('\n'); if (message.length() > 0) message.append('\n');
message.append(Lang.get("msg_errInFile_N", orig)); message.append(Lang.get("msg_errInFile_N", orig));