mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -04:00
renamed a method
This commit is contained in:
parent
04d6748e0d
commit
3d48efedb9
@ -19,7 +19,7 @@ public class ExceptionWithOrigin extends Exception {
|
||||
* @param e the exception
|
||||
* @return the origin or null;
|
||||
*/
|
||||
public static String getOrigin(Throwable e) {
|
||||
public static String getOriginOf(Throwable e) {
|
||||
while (e != null) {
|
||||
if (e instanceof ExceptionWithOrigin) {
|
||||
String orig = ((ExceptionWithOrigin) e).getOriginStr();
|
||||
|
@ -46,7 +46,7 @@ public class ErrorMessage implements Runnable {
|
||||
message.append('\n');
|
||||
addExceptionMessage(e);
|
||||
|
||||
String orig = ExceptionWithOrigin.getOrigin(e);
|
||||
String orig = ExceptionWithOrigin.getOriginOf(e);
|
||||
if (orig != null) {
|
||||
if (message.length() > 0) message.append('\n');
|
||||
message.append(Lang.get("msg_errInFile_N", orig));
|
||||
|
Loading…
x
Reference in New Issue
Block a user